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