java heap space troubles in 10.5.x? Looking in /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries might help..
java heap space troubles in 10.5.x? Looking in /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries might help..
- Subject: java heap space troubles in 10.5.x? Looking in /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries might help..
- From: Johan Henselmans <email@hidden>
- Date: Tue, 20 Nov 2007 12:22:04 +0100
I was having Java Heap Space troubles and other strange problems in a
10.5.1 machine. I ran the latest WOLips, and had Eclipse RCP 3.3.2.2
on the machine, with the latest wonder 5.3, and the 5.3 JavaWebObjects
frameworks as per instructions, with symlinks to all the right places.
That had worked fine until one day it stopped. I got strange errors in
before properly working code, and all kinds of weird solutions. In the
end I could not run the apps anymore. Everything I started resulted in
a java heap space error.
I tried to run the same project under 10.4, with eclipse pointing to
the workspace on the 10.5 Volume. As you can imagine it did not work.
The 10.4 was a complete image of the 10.5 and apparently the workspace
info does not point to a Volume, but to a Unix path, so I ended up
being in /Users/johan/projects/... etc which was on the 10.4 disk,
instead of /Volumes/10.5/Users/johan/projects/...etc
So I moved the projects to a 'neutral' volume, properly named Leopard
Tank. That would learn the bugger! (I did not know who the bugger, but
I can assure you I had some... feelings towards it).
I also created an Eclipse workspace over there, and imported the
projects.
After that I retried to run the projects in 10.4.11. Lo and Behold.
Everything worked.
Back to 10.5.1. Again that pesky 'Java Heap Space' error.
I then started to compare every bit of a clean 10.5.1 install with my
10.5.1 install, with attention to everything LaunchDaemons and Java
related stuff. I then found two things: Phidgets had installed a JNI
library in /System/Library/Frameworks/JavaVM.framework/Versions/
CurrentJDK/Libraries (which I moved to /Library/Java/Extensions, where
it should belong), the was a file called classist,297, which
apparently was some leftover of an upgrade attempt, and there was a
classes.jsa that was a bit stale (29th of october). I removed the
classlist,297, and the classes.jsa, restarted the machine in 10.5.1 (I
had done this all in 10.4.11 mode) and suddenly, Eclipse sprang to
live again. No more java heap space errors any more.
What's even more amazing, the thing is a whole lot faster now.
I do not know how I can look into these classes.jsa, if there are any
webobjects related classes included or something. But I can start
working on 10.5.1 again. Perhaps this might help somebody else.
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden