Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

cannot allocate memory

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic