Re: Building From Source: 'Could not reserve enough space for object heap'

125 views
Skip to first unread message

hu alter

unread,
Nov 6, 2013, 9:58:26 PM11/6/13
to seleniu...@googlegroups.com
hi ,
i had solved this by changing it as the blow ;
Run the JVM with -XX:MaxHeapSize=256m (or any big number), and possibly -Xmx512m     
after change it to 256 ,it solved my problem ,you can take to use it .not change the MaxPermSize value ,keep it as default.

On Tuesday, February 5, 2013 1:03:13 AM UTC+8, mattcarp wrote:
Hi.  I'm attempting to build the latest checked-in source for Selenium server standalone and I'm getting the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

I notice that in the 'go' file MaxPermSize=1024m.  I tried changing this to 512m (same error) and to 2048m (error: 'The size of the object heap + VM data exceeds the maximum representable size').  I'm running 32-bit Ubuntu 12.04 with 8 gigs of RAM (of which I assume only 4 gigs are addressable).

Any tips on what to try?

Many thanks.

matt

hu alter

unread,
Jun 4, 2014, 8:59:43 PM6/4/14
to seleniu...@googlegroups.com
I sloved it by changing the MaxPermSize=824m and add the -XX:MaxHeapSize=156m ,it works for me now .hope this can help someone here.
Reply all
Reply to author
Forward
0 new messages