• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot allocate memory  RSS feed

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a system call using Runtime.execute() method. I am getting the following error. Has anyone of you come accross this error. What did you do to rectify?

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 java.lang.Runtime.exec(Runtime.java:429)|
at java.lang.Runtime.exec(Runtime.java:326)|
at export.StudioRobot.runRobot(Unknown Source)|
at export.ImageExportScheduler.executeTask(Unknown Source)|
at taskengine.internal.SchedulerBean.executeTask(SchedulerBean.java:417)|
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)|
at java.lang.reflect.Method.invoke(Method.java:585)|
at mfw.bean.BeanProxy.invoke(BeanProxy.java:119)|
at $Proxy3.executeTask(Unknown Source)|
at taskengine.internal.ScheduleExecutor.executeNextTask(ScheduleExecutor.java:115)|
at taskengine.internal.ScheduleExecutor.run(ScheduleExecutor.java:41)|
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)|
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)|
at java.lang.Thread.run(Thread.java:595)|
[ July 31, 2007: Message edited by: Arul Jose ]
 
Jonathan Carlson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arul Jose:
I am doing a system call using Runtime.execute() method. I am getting the following error. Has anyone of you come accross this error. What did you do to rectify?

java.io.IOException: java.io.IOException: Cannot allocate memory


I've also run into this whenever I have the initial JVM size up near the max JVM size. Here is a post of a guy who figured out that you need to increase the size of your swap file (assuming you are on Linux or Unix)

http://forum.java.sun.com/thread.jspa?threadID=5187941
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!