Java IOException Not enough space

Nice article on explaining how to resolve java not enough space exception. Just encountered this exception during the day

$ ./S84got-oo-pra1 start [property] java.io.IOException: Not enough space [property] at java.lang.UNIXProcess.forkAndExec(Native Method) [property] at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) [property] at java.lang.ProcessImpl.start(ProcessImpl.java:65) [property] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) [property] at java.lang.Runtime.exec(Runtime.java:591) [property] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [property] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [property] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [property] at java.lang.reflect.Method.invoke(Method.java:585) [property] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:828) [property] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) [property] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) [property] at org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:165) [property] at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:526) [property] at org.apache.tools.ant.taskdefs.Property.execute(Property.java:403) [property] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [property] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) [property] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [property] at java.lang.reflect.Method.invoke(Method.java:585) [property] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [property] at org.apache.tools.ant.Task.perform(Task.java:348) [property] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [property] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) [property] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [property] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [property] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [property] at java.lang.reflect.Method.invoke(Method.java:585) [property] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [property] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:134) [property] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [property] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [property] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [property] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [property] at java.lang.reflect.Method.invoke(Method.java:585) [property] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [property] at org.apache.tools.ant.Task.perform(Task.java:348) [property] at org.apache.tools.ant.Target.execute(Target.java:357) [property] at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) [property] at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:96) [property] at org.apache.tools.ant.Main.runBuild(Main.java:683) [property] at org.apache.tools.ant.Main.startAnt(Main.java:199) [property] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [property] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)  BUILD FAILED /apps/gmmt/bea/weblogic922/bin/init-1.9/init.xml:51: The following error occurred while executing this line: /apps/gmmt/bea/weblogic922/bin/init-1.9/common-macros.xml:233: Please export env. variable START_DIR and rerun! usage working directory when starting the server

adding more swap space solved the issue

 /usr/sbin/mkfile 1g /path/to/swapfile /usr/bin/swap -a /path/to/swapfile /usr/bin/swap -l

http://wiki.hudson-ci.org/display/HUDSON/IOException+Not+enough+space

Advertisements

Author: lwpro2

Java J2EE professional

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s