Naoko Hamamoto's Weblog

« First blog | Main | Changing system... »

20060202 Thursday February 02, 2006

Creator runs out of disk space with 40GB???

The other day, I was using the newly released Java Studio Creator 2 to create a web application for my team on Sun Blade Workstation. I was simply creating a prototype, so that my team can see how the GUI will look and feel and navigate.

After creating five simple pages, I was running into problems with Mozilla not starting when I tried to deploy the application. It was exhibiting some odd behavior; sometimes Mozilla came up, other times it did not. I then used a browser on my PC to access the application - it failed. Looking through server.log, I found out that I was running into

java.io.IOException: Not enough space
       at java.lang.UNIXProcess.forkAndExec(Native Method)
       at java.lang.UNIXProcess.(UNIXProcess.java:53)

What do you mean that I don't have enough space? I have more than 40GB of space available...! Memory was not an issue either, so I was stuck.

Then a help from heaven (thanks Steve!) came. He told me to check my free swap space on the system. Sure enough, when I added 1 GB of additional swap space, the problem went away!

To temporarily add a swap space to your system, you do:

% su
Password:
# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   136,9      16 1052624 149504
# mkfile 250m /var/moreswap
# swap -a /var/moreswap
# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   136,9      16 1052624 137680
/var/moreswap         -       16 511984 511984

If you see a problem similar to this, it is worth trying this to see if it helps.

Posted by naoko ( Feb 02 2006, 04:02:00 PM PST ) Permalink Comments [3]

Trackback URL: http://blogs.sun.com/naoko/entry/creator_runs_out_of_disk
Comments:

Thanks for posting this. I had the same problem, except I didn't have a swap file set up!!! I've been racking my brains trying to find out the problem, and this is the only page that has even given a hint of a solution.

Posted by Jonathan Whiteley on July 20, 2006 at 07:36 AM PDT #

Hi Jonathan,

Thank you for your post, and I am glad that it helped you with your problem!

--Naoko

Posted by naoko on July 28, 2006 at 12:05 PM PDT #

thanks man - was using eclipse ide for java dev and kept getting this when i was launching ant builds - helped me loads

Posted by nigel on October 31, 2006 at 02:28 AM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.