|
From: Thierry H. <th...@in...> - 2006-09-28 10:59:58
|
Are you on windows or solaris/linux ?. If you are on windows the problem come probably from some dll loaded somewhere ( up to the system) in the address space. Aggressive Heap try to allocate the max memory possible or at least to map the addresses requested to use this memory. The system will refuse to map the range of address because the range could not be reserved ( range + address of dll > max address space allowed per process ). =20 =20 There is not so much to do here. First try to lauch your appli without the wrapper. Then try to launch the wrapper without the dll ( it's normally working the dll is use full to handle signal ) . Then there is some method to force the address where the dll is loaded but I don't remember them. =20 The best way is too not use Aggressive heap ( which is not recommended by sun ;) ) and to specify a max memory in which everything fit in. =20 =20 =20 Thierry Hanot =20 ________________________________ From: wra...@li... [mailto:wra...@li...] On Behalf Of Mike Streeton Sent: jeudi 28 septembre 2006 11:47 To: wra...@li... Subject: [Wrapper-user] AggressiveHeap =20 I am trying to get the java option aggressive heap to work. I have put the following lines in the wrapper.conf: =20 # Java Additional Parameters wrapper.java.additional.1=3D-server wrapper.java.additional.2=3D-XX:+UseParallelGC wrapper.java.additional.3=3D-XX:+AggressiveHeap =20 # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3D3 =20 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=3D256 =20 The following appears in the log: =20 STATUS | wrapper | 2006/09/28 10:44:55 | --> Wrapper Started as Service STATUS | wrapper | 2006/09/28 10:44:55 | Launching a JVM... ERROR | wrapper | 2006/09/28 10:45:00 | JVM exited while loading the application. INFO | jvm 1 | 2006/09/28 10:45:00 | Error occurred during initialization of VM INFO | jvm 1 | 2006/09/28 10:45:00 | Could not reserve enough space for object heap =20 The application will start okay without the wrapper, but fails with the wrapper, at start up it will use no more than 20M. =20 I have tried it with 3.1.2 and 3.2.1 version. =20 Any Ideas? =20 Thanks =20 Mike =20 =20 www.ardentia.com the home of NetSearch =20 |