Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Error when launching debugger from Eclipse(Cannot launch JBoss server to debug or run java application)
Error when launching debugger from Eclipse [message #748449] Mon, 24 October 2011 17:47 Go to next message
Billy Blanks is currently offline Billy BlanksFriend
Messages: 8
Registered: June 2011
Junior Member
Hello,
I am new to Eclipse and I am having trouble launching the debugger. Every time I try to launch it, I get the following message: 'Launching JBoss v4.0 at localhost' has encountered a problem. Cannot connect to VM. In the details section of the pop-up is the following text: Cannot connect to VM socket closed. The Eclipse console has the following text: Error occurred during initialization of VM Too small initial heap size. Just trying to run the application from within Eclipse also fails. There is no pop-up however and the message displayed in the Eclipse console is: Error occured during initialization of VM Too small initial heap. This is very strange to me because I am able to launch my server (outside of Eclipse) with no problem.
I am running Windows 7 64-bit, Eclipse Helios R2, Java 1.6.0_27 and JBoss 4.0.3SP1. I hope this problem that I am experiencing isn't so trivial that it wont be answered as I am very much in need of help.

Thank you in advance,
Billy
Re: Error when launching debugger from Eclipse [message #748587 is a reply to message #748449] Mon, 24 October 2011 19:28 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 10/24/2011 1:47 PM, Billy Blanks wrote:
> Hello,
> I am new to Eclipse and I am having trouble launching the debugger.
> Every time I try to launch it, I get the following message: 'Launching
> JBoss v4.0 at localhost' has encountered a problem. Cannot connect to
> VM. In the details section of the pop-up is the following text: Cannot
> connect to VM socket closed. The Eclipse console has the following text:
> Error occurred during initialization of VM Too small initial heap size.
> Just trying to run the application from within Eclipse also fails. There
> is no pop-up however and the message displayed in the Eclipse console
> is: Error occured during initialization of VM Too small initial heap.
> This is very strange to me because I am able to launch my server
> (outside of Eclipse) with no problem.
> I am running Windows 7 64-bit, Eclipse Helios R2, Java 1.6.0_27 and
> JBoss 4.0.3SP1. I hope this problem that I am experiencing isn't so
> trivial that it wont be answered as I am very much in need of help.
>
> Thank you in advance,
> Billy

In the Debug view of the Debug perspective, do you see a terminated
launch for "JBoss v4.0 at localhost". If so, right-click on the
"javaw.exe" item in the tree and select Properties. This dialog will
reveal the command line used to launch JBoss. What are the -Xms and
-Xmx values in this command?

Cheers,
Larry
Re: Error when launching debugger from Eclipse [message #748596 is a reply to message #748587] Mon, 24 October 2011 19:38 Go to previous messageGo to next message
Billy Blanks is currently offline Billy BlanksFriend
Messages: 8
Registered: June 2011
Junior Member
Thank you for the reply Larry. Here are the values:
-Xms128
-Xmx512m
Re: Error when launching debugger from Eclipse [message #748619 is a reply to message #748596] Mon, 24 October 2011 19:59 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 10/24/2011 3:38 PM, Billy Blanks wrote:
> Thank you for the reply Larry. Here are the values:
> -Xms128
> -Xmx512m

If pasted correctly, it looks like your -Xms value is missing an "m". I
don't know where it went, but 128 bytes isn't going to cut it. To fix,
double-click on the JBoss server in the Servers view. This will open
the server editor. At the bottom of the "General Information" section
(upper left portion of the editor), click the "Open launch
configuration" link. This will open the launch configuration properties
dialog. Switch to the Arguments tab and in the "VM Arguments" section,
add the missing "m" to the "-Xms128".

Cheers,
Larry
Re: Error when launching debugger from Eclipse [message #748687 is a reply to message #748619] Mon, 24 October 2011 21:01 Go to previous message
Billy Blanks is currently offline Billy BlanksFriend
Messages: 8
Registered: June 2011
Junior Member
Larry,
That worked like a charm!

Thanks a lot,
Billy
Previous Topic:How to create a dynamic web project from existing source folders?
Next Topic:Documentation on WTP Runtime framework?
Goto Forum:
  


Current Time: Thu Mar 28 22:04:18 GMT 2024

Powered by FUDForum. Page generated in 0.02174 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top