Thread: [mod-security-users] How to increase Java memory allocation in the ModSecurity 1.0.5 Console on Win
Brought to you by:
victorhora,
zimmerletw
From: Ray <rp...@ho...> - 2008-09-25 14:34:32
|
I'm trying to create a report and I'm getting an Internal Server Error 500 part way through the generation process. Right after a service restart I have these numbers for MEM: Free: 2,384 KB Allocated: 12,644 KB Max: 65,088 KB After the error I have these numbers: Free: 47,637 KB Allocated: 65,088 KB Max: 65,088 KB The FAQ instructions reference changes to the "modsecurity-console shell script" and I cannot find the Windows equivalent. The server has almost 1 GB of free RAM. Any pointers will be greatly appreciated. Thanks, Ray |
From: Christian B. <ch...@jw...> - 2008-09-25 21:04:36
|
Hi Ray, there exists a variable called INSTALL4J_ADD_VM_PARAMS at the very beginning of the "modsecurity-console" script. This can be used to give options to the Java runtime environment. Just uncomment this line and add the "-Xmx" option, which will increase the Java default heap-size of 64 MB to 512MB: INSTALL4J_ADD_VM_PARAMS="-Xmx512M" Best regards, Chris Am 25.09.2008 um 16:34 schrieb Ray: > I'm trying to create a report and I'm getting an Internal Server > Error 500 > part way through the generation process. Right after a service > restart I > have these numbers for MEM: > > Free: 2,384 KB > Allocated: 12,644 KB > Max: 65,088 KB > > After the error I have these numbers: > > Free: 47,637 KB > Allocated: 65,088 KB > Max: 65,088 KB > > The FAQ instructions reference changes to the "modsecurity-console > shell > script" and I cannot find the Windows equivalent. The server has > almost 1 GB > of free RAM. > > Any pointers will be greatly appreciated. > > Thanks, > > Ray > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users |