Jordan,

How do I increase "MaxPermSize" is it in the same file as -Xmx setting?

Thanks,
Alan Cole
(PGP Key ID: 0x82D8E0C7)



Begin forwarded message:

> From: Jordan Michaels <[email protected]>
> Subject: Re: [OpenBD] Restart time
> Date: August 8, 2012 5:43:17 PM EDT
> To: [email protected]
> Reply-To: [email protected]
> 
> Yeah, I'd recommend it. Maybe also consider increasing MaxPermSize as well 
> and see if that helps since compiled classes are stored there.
> 
> Are these sites using a framework of any kind? I don't know hat all 
> frameworks have it, but I wonder if you may be compiling the framework 
> classes multiple times for each new site you add? I know Mura addresses this 
> by giving users the ability to host multiple sites via the same code base, 
> but I don't know how other frameworks handle this, or even if they do.
> 
> Also, just so you're aware, if you're using the OpenBD 2 installer it 
> contains mod_cfml. mod_cfml will not get hit if you're adding the sites to 
> the server.xml file (which it sounds like you are), but if it IS getting hit 
> for any reason, it will add several seconds to the initial hit of a web site 
> in order to create the new context in Tomcat for that site. It may be useful 
> to turn on mod_cfml's logging (in Tomcat's server.xml file) and see if you 
> get any mod_cfml messages in the catalina.out log. You can rule it out as a 
> possible cause that way.
> 
> Warm Regards,
> Jordan Michaels
> 
> On 08/08/2012 02:24 PM, Alan Cole wrote:
>> Jordan,
>> 
>> I had set that (-Xmx512m) a few weeks ago ... I'm sure it
>> helped, but it didn't "seem" to improve things much.
>> 
>> I'm kinda gathering that I should double the ram and then push
>> that -Xmx to 1024m and see if that improves the load times?
>> 
>> Thanks,
>> Alan Cole
>> (PGP Key ID: 0x82D8E0C7)
>> 
>> 
>> 
>> Begin forwarded message:
>> 
>>> *From: *Jordan Michaels <[email protected]
>>> <mailto:[email protected]>>
>>> 
>>> *Subject: *Re: [OpenBD] Restart time
>>> 
>>> *Date: *August 8, 2012 5:07:37 PM EDT
>>> 
>>> *To: *[email protected] <mailto:[email protected]>
>>> 
>>> *Reply-To: *[email protected] <mailto:[email protected]>
>>> 
>>> 
>>> Guessing from what you're experiencing here, when your contexts load
>>> they're generating a few classes. Those classes take time to load.
>>> Load time could be improved by upping the amount of memory that you're
>>> giving your JVM.
>>> 
>>> To update the amount of memory you're providing to your JVM, edit the
>>> following file:
>>> 
>>> /opt/openbd/tomcat/bin/setenv.sh
>>> 
>>> The default will probably look something like this:
>>> 
>>> JAVA_OPTS="-Xms128m -Xmx256m -XX:MaxPermSize=64m ";
>>> 
>>> Since your system has 1GB available to it, you could safely increase
>>> the max memory that your JVM uses by adjusting the following value:
>>> 
>>> -Xmx256m
>>> to
>>> -Xmx512m
>>> 
>>> Or, if you could give your system more memory, then you could move it
>>> even higher.
>>> 
>>> Memory is going to be your most important resource in your server
>>> environment. Even though you're running with good CPU power, it will
>>> be important as you grow to vastly increase your memory from what it
>>> is now.
>>> 
>>> Let us know how this works for you.
>>> 
>>> Hope this helps.
>>> 
>>> Warm Regards,
>>> Jordan Michaels
>>> 
>>> On 08/08/2012 01:50 PM, Alan Cole wrote:
>>>> Alex,
>>>> 
>>>> we are using AJP (AJP13) - through apache
>>>> 
>>>> No - cpu load drops to half (or less than half) of normal operational
>>>> load.
>>>> 
>>>> OpenBD system info screen shows:
>>>> 
>>>> JVM memory Info
>>>> used: 338 MB
>>>> Free: 157 MB
>>>> Total: 495 MB
>>>> Max: 495 MB
>>>> 
>>>> (Matthew, I'm guessing the above will answer your question of Tomcat mem
>>>> usage as well).
>>>> 
>>>> Thanks,
>>>> Alan Cole
>>>> (PGP Key ID: 0x82D8E0C7)
>>>> 
>>>> 
>>>> 
>>>> Begin forwarded message:
>>>> 
>>>>> *From: *Alex Skinner <[email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>>
>>>>> 
>>>>> *Subject: *Re: [OpenBD] Restart time
>>>>> 
>>>>> *Date: *August 8, 2012 4:35:58 PM EDT
>>>>> 
>>>>> *To: *"[email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>"
>>>>> <[email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>>
>>>>> 
>>>>> *Reply-To: *[email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>
>>>>> 
>>>>> 
>>>>> So compared to acf the time to serve requests is high, what are you
>>>>> fronting tomcat with and how modproxy or ajp?
>>>>> 
>>>>> Do you get high CPU utilisation when for the period an then it drops,
>>>>> check the system information screen in the bluedragon admin and let us
>>>>> know ram usage
>>>>> 
>>>>> Have you upped the maxpermsize from default?
>>>>> 
>>>>> A
>>>>> 
>>>>> On Wednesday, 8 August 2012, Alan Cole <[email protected]
>>>>> <mailto:[email protected]>
>>>>> <mailto:[email protected]>> wrote:
>>>>> > Jason,
>>>>> > Fedora 16
>>>>> > Thanks,
>>>>> > Alan Cole
>>>>> > (PGP Key ID: 0x82D8E0C7)
>>>>> >
>>>>> >
>>>>> > Begin forwarded message:
>>>>> >
>>>>> > From: Jason King <[email protected]
>>>>> <mailto:[email protected]>
>>>>> <mailto:[email protected]>>
>>>>> >
>>>>> > Subject: Re: [OpenBD] Restart time
>>>>> >
>>>>> > Date: August 8, 2012 4:18:22 PM EDT
>>>>> >
>>>>> > To: [email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>
>>>>> >
>>>>> > Reply-To: [email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>
>>>>> >
>>>>> > What OS?
>>>>> >
>>>>> > --
>>>>> > online documentation: http://openbd.org/manual/
>>>>> > http://groups.google.com/group/openbd?hl=en
>>>>> >
>>>>> > --
>>>>> > online documentation: http://openbd.org/manual/
>>>>> > http://groups.google.com/group/openbd?hl=en
>>>>> >
>>>>> 
>>>>> --
>>>>> Alex Skinner
>>>>> Managing Director
>>>>> Pixl8 Interactive
>>>>> 
>>>>> Tel: +448452600726
>>>>> Email: [email protected] <mailto:[email protected]>
>>>>> <mailto:[email protected]>
>>>>> Web: pixl8.co.uk <http://pixl8.co.uk> <http://pixl8.co.uk>
>>>>> 
>>>>> 
>>>>> --
>>>>> online documentation: http://openbd.org/manual/
>>>>> http://groups.google.com/group/openbd?hl=en
>>>> 
>>>> --
>>>> online documentation: http://openbd.org/manual/
>>>> http://groups.google.com/group/openbd?hl=en
>>> 
>>> --
>>> online documentation: http://openbd.org/manual/
>>> http://groups.google.com/group/openbd?hl=en
>> 
>> --
>> online documentation: http://openbd.org/manual/
>> http://groups.google.com/group/openbd?hl=en
> 
> -- 
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to