Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » java.io.IOException: Cannot allocate memory when running a Java program
java.io.IOException: Cannot allocate memory when running a Java program [message #209175] Thu, 07 July 2005 23:50 Go to next message
Eclipse UserFriend
Originally posted by: bandrews.nospam_bphnx.com

Hi All,

After installing Eclipse 3.1 on Linux, I am getting this error A LOT
when I just try to run a Java application from the Run menu. A restart
of Eclipse fixes it. I never had this problem before. Is anyone else
seeing this problem? Here is the stack trace:

java.io.IOException: java.io.IOException: Cannot allocate memory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:746 )
at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRu nner.java:70)
at
org.eclipse.jdt.internal.launching.StandardVMRunner.run(Stan dardVMRunner.java:241)
at
org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaun chDelegate.java:101)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)


thanks,

B
Re: java.io.IOException: Cannot allocate memory when running a Java program [message #209565 is a reply to message #209175] Mon, 11 July 2005 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Barry Andrews wrote:
> Hi All,
>
> After installing Eclipse 3.1 on Linux, I am getting this error A LOT
> when I just try to run a Java application from the Run menu. A restart
> of Eclipse fixes it. I never had this problem before. Is anyone else
> seeing this problem? Here is the stack trace:

Have you tried increasing the VM memory parameters that you use to
launch eclipse (using -vmargs -Xmx256m, etc,)?

HTH,
Eric
Re: java.io.IOException: Cannot allocate memory when running a Java program [message #209588 is a reply to message #209565] Mon, 11 July 2005 15:35 Go to previous message
Eclipse UserFriend
Originally posted by: bandrews.nospam_bphnx.com

It's VERY possible that is the problem. When I had 3.1M2, I had a
shortcut on my desktop to start Eclipse with -Xmx300m and -Xms300m, but
when I upgraded to 3.1GA, I did not specify these parameters when I
created the shortcut. Thanks!!! I will try it!

-Barry


Eric Rizzo wrote:
> Barry Andrews wrote:
>
>> Hi All,
>>
>> After installing Eclipse 3.1 on Linux, I am getting this error A LOT
>> when I just try to run a Java application from the Run menu. A restart
>> of Eclipse fixes it. I never had this problem before. Is anyone else
>> seeing this problem? Here is the stack trace:
>
>
> Have you tried increasing the VM memory parameters that you use to
> launch eclipse (using -vmargs -Xmx256m, etc,)?
>
> HTH,
> Eric
Previous Topic:get the ast node at a given position
Next Topic:Eclipse 3.1 - Java Prfofiler - jMechanic / Eclipsecolorer
Goto Forum:
  


Current Time: Sat Apr 20 05:48:18 GMT 2024

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

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

Back to the top