Greg Thomas wrote:
On 11/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Quoting ICMan <[EMAIL PROTECTED]>:
> Hello,
>
> I just compiled (after a whole day) the jdk 1.5.0p19 distribution
on OBSD
> 4.0, and I get the following error whenever I run java or attempt
to use
> the plugin with firefox:
>
> "Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine."
>
> I have tried "ulimit -d 100000", I have tried "java -Xms10M
-Xmx10M", "java
> -Xms100M -Xmx100M", and even "java -Xms1M -Xmx1M". None work. I
> continue to get the same error.
>
I have just completed a java installation from source as well and got
the same error. Setting "ulimit -d 400000" cleared that error for me;
try a higher value.
I ran into similar problems with jdk-1.5.0p21 on -current. After
troubleshooting with Kurt for awhile we were never able to figure out
why I had to do this little wrapper script:
[EMAIL PROTECTED] cat bin/firefox.sh
#!/bin/csh
/bin/csh -c unlimit
/usr/local/bin/firefox &
Setting ulimits in sh never worked for me. When I saw the unlimit
command in csh I figured what the hell I'll try it and it worked.
Greg
Thank you everyone. I discovered that ulimit -d 200000 works on my
system. I don't really know what that means, and I have yet to figure
out how to set this for all users (so they can use java), but that's
stuff I can puzzle out.
Thank you for your help. I would not have been able to do it without
your support.
ICMan