# Info on PermSize and MaxPermSize

17 messages
Open this post in threaded view
|

## Info on PermSize and MaxPermSize

 Hi All, Please let me know, What is the difference beween PermSize and MaxPermSize in Tomcat -- Thanks & Regards Geet
Open this post in threaded view
|

## RE: Info on PermSize and MaxPermSize

 > From: Geet Chandra [mailto:[hidden email]] > Subject: Info on PermSize and MaxPermSize > What is the difference beween PermSize and MaxPermSize in Tomcat That is not a Tomcat question, it's a JVM one: http://lmgtfy.com/?q=jvm+permsize+maxpermsize - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 In reply to this post by Geett Chanddra Singha Hi Geet, these parameters are not Tomcat specific. This are JVM parameters as Chuck mentioned. The parameter -XX:PermSize defines the initial size of the PermGen (permanent generation) of the jvm memory. -XX:MaxPermSize is to set the max size. Thomas Am 20.02.2012 04:46, schrieb Geet Chandra: > Hi All, > > Please let me know, > > What is the difference beween PermSize and MaxPermSize in Tomcat > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 how to set  -XX:PermSize and   -XX:MaxPermSize at startup of Tomcat?. Please let me know.... On Mon, Feb 20, 2012 at 12:25 PM, Thomas Rohde <[hidden email]> wrote: > Hi Geet, > > these parameters are not Tomcat specific. This are JVM parameters as Chuck > mentioned. The parameter -XX:PermSize defines the initial size of the > PermGen (permanent generation) of the jvm memory. -XX:MaxPermSize is to set > the max size. > > Thomas > > > Am 20.02.2012 04:46, schrieb Geet Chandra: > >  Hi All, >> >> Please let me know, >> >> What is the difference beween PermSize and MaxPermSize in Tomcat >> >> > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<[hidden email]> > For additional commands, e-mail: [hidden email] > > -- Thanks & Regards Geet
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 Geet Chandra wrote: > how to set  -XX:PermSize and   -XX:MaxPermSize at startup of Tomcat?. > Please let me know.... Considering that you don't really seem to know what they are, you probably shouldn't. By default, the JVM on your platform will use reasonable values.  So why exactly do you want to change them ?  Do you have a problem with their current size ? Explain. By the way, it may also help to inform us which version of Tomcat you are using, with which JVM version, and on which platform. > > On Mon, Feb 20, 2012 at 12:25 PM, Thomas Rohde <[hidden email]> wrote: > >> Hi Geet, >> >> these parameters are not Tomcat specific. This are JVM parameters as Chuck >> mentioned. The parameter -XX:PermSize defines the initial size of the >> PermGen (permanent generation) of the jvm memory. -XX:MaxPermSize is to set >> the max size. >> >> Thomas >> >> >> Am 20.02.2012 04:46, schrieb Geet Chandra: >> >>  Hi All, >>> Please let me know, >>> >>> What is the difference beween PermSize and MaxPermSize in Tomcat >>> >>> >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<[hidden email]> >> For additional commands, e-mail: [hidden email] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 On 14/03/2012 09:22, André Warnier wrote: > Geet Chandra wrote: >> how to set  -XX:PermSize and   -XX:MaxPermSize at startup of Tomcat?. >> Please let me know.... > > Considering that you don't really seem to know what they are, you > probably shouldn't. > By default, the JVM on your platform will use reasonable values.  So why > exactly do you want to change them ?  Do you have a problem with their > current size ? Explain. > > By the way, it may also help to inform us which version of Tomcat you > are using, with which JVM version, and on which platform. [cough] homework [cough] p >> On Mon, Feb 20, 2012 at 12:25 PM, Thomas Rohde <[hidden email]> wrote: >> >>> Hi Geet, >>> >>> these parameters are not Tomcat specific. This are JVM parameters as >>> Chuck >>> mentioned. The parameter -XX:PermSize defines the initial size of the >>> PermGen (permanent generation) of the jvm memory. -XX:MaxPermSize is >>> to set >>> the max size. >>> >>> Thomas >>> >>> >>> Am 20.02.2012 04:46, schrieb Geet Chandra: >>> >>>  Hi All, >>>> Please let me know, >>>> >>>> What is the difference beween PermSize and MaxPermSize in Tomcat >>>> >>>> >>> >>> ------------------------------**------------------------------**--------- >>> >>> To unsubscribe, e-mail: >>> users-unsubscribe@tomcat.**apache.org<[hidden email]> >>> >>> For additional commands, e-mail: [hidden email] >>> >>> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > -- [key:62590808] signature.asc (964 bytes) Download Attachment
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 Version of Tomcat is 6.0.035 As Tomcat is being shipped with product developed, we are providing command line utility,using the same utility users are of product allow to change the configurable parameters as per application type deployed in tomcat.We are using .vbs as mentioned utility implementation file.Also we are registering tomcat as windows service while product is being installed and command to start tomcat as "cmd.exe /c net start tomcat ".Hoping everyone understood my requirements. On Wed, Mar 14, 2012 at 6:59 PM, Pid <[hidden email]> wrote: > On 14/03/2012 09:22, André Warnier wrote: > > Geet Chandra wrote: > >> how to set  -XX:PermSize and   -XX:MaxPermSize at startup of Tomcat?. > >> Please let me know.... > > > > Considering that you don't really seem to know what they are, you > > probably shouldn't. > > By default, the JVM on your platform will use reasonable values.  So why > > exactly do you want to change them ?  Do you have a problem with their > > current size ? Explain. > > > > By the way, it may also help to inform us which version of Tomcat you > > are using, with which JVM version, and on which platform. > > [cough] homework [cough] > > > p > > > >> On Mon, Feb 20, 2012 at 12:25 PM, Thomas Rohde <[hidden email]> wrote: > >> > >>> Hi Geet, > >>> > >>> these parameters are not Tomcat specific. This are JVM parameters as > >>> Chuck > >>> mentioned. The parameter -XX:PermSize defines the initial size of the > >>> PermGen (permanent generation) of the jvm memory. -XX:MaxPermSize is > >>> to set > >>> the max size. > >>> > >>> Thomas > >>> > >>> > >>> Am 20.02.2012 04:46, schrieb Geet Chandra: > >>> > >>>  Hi All, > >>>> Please let me know, > >>>> > >>>> What is the difference beween PermSize and MaxPermSize in Tomcat > >>>> > >>>> > >>> > >>> > ------------------------------**------------------------------**--------- > >>> > >>> To unsubscribe, e-mail: > >>> users-unsubscribe@tomcat.**apache.org< > [hidden email]> > >>> > >>> For additional commands, e-mail: [hidden email] > >>> > >>> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > -- > > [key:62590808] > > -- Thanks & Regards Geet
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 Geet Chandra wrote: ... ... >> >    Here is code snippet for registering as Windows service > "%EXECUTABLE%" //IS//%SERVICE_NAME% --Install="C:\Program > Files\\non\tomcat\b\bin\tomcat6.exe" --Jvm=auto > --StartMode=jvm --StopMode=jvm > --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start > --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop > The above code snippet is run as *.bat and being invoked from *.msi > >>> and >>> command to start tomcat as "cmd.exe /c net start tomcat ". >> - As utility.vbs is being included in tomcat package(*.msi) , once tomcat >>  is installed on system, this utility.vbs is placed in >> "C:\Program Files\\non\tomcat\b\bin\" folder. > >    Here is snippet for utility.vbs as >   - WSH_Shell.Run("cmd.exe /c net " & "stop"  & > &chr(34)&Servicename&chr(34),0,True) > >  So my question is there way to configure mentioned parameters before > starting tomcat as Windows service. > Ok. There are different Windows packages for tomcat, different ways to install Tomcat under Windows, and different ways to run it.  And the answer to your original question is different in each case. Previously, it was not clear which way you were using.  Now it is. First, you should consult the Tomcat FAQ, in which there is a whole section about running under Windows.  More specifically this article : http://wiki.apache.org/tomcat/FAQ/Windows#Q11In that page is a link to the "procrun" software documentation, which you should also read. This all explains what the above command  > "%EXECUTABLE%" //IS//%SERVICE_NAME% --Install="C:\Program ..... is, what it does, and how to set the appropriate parameters in the Windows Registry to achieve what you want to do. Key points : - the "-XX" command-line switches are command-line switches for the Java JVM which runs tomcat - the Windows Service runs the program tomcat(version).exe, which is a wrapper - the wrapper runs the JVM which runs tomcat - the wrapper reads its parameters from the Windows Registry, including the command-line switches that it should pass to the JVM when it starts it - these Registry parameters are set by the above command "%EXECUTABLE%" //IS//%SERVICE_NAME% --Install="C:\Program .... when you use it to install the service If this is still not clear, come back here and ask away. One more note : the JVM command-line switches can vary between different JVM versions. That's why it is also important to know which JVM version you are using. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 In reply to this post by Geett Chanddra Singha Geet Chandra wrote: .. > >     One more question, I would like to ask, >    Like ""%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions " > Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 256 --JvmMx 512 " > >  How can I set JAVA_OPTS=-Xms256m -Xmx512m using > ""%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions " > Djava.io.tmpdir=%CATALINA_BASE%\temp" > I am not sure that I really understand your question. "JAVA_OPTS" is an environment variable, that can be used in *scripts*, such as for example when you start Tomcat in a command window by using a .bat script. But these environment variables are not used when Tomcat runs as a service, under control of the wrapper program. In that case, the wrapper picks values out of the Windows Registry, and uses them to (internally) set the command-line parameters for the JVM, when it starts the JVM. The "install" command above sets these Registry values, so that (later) the wrapper can pick them up, when it starts the JVM. The documentation of procrun is sometimes a bit obscure. As far as I can tell, in your case, there are 2 ways of specifying the "-XMs" and "-Xmx" switches for the JVM : you can use *either* of --JvmMs xxxM  --JvmMx yyyM OR ++JvmOptions "-Xms...M -Xmx ...M" ..I think.. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

Open this post in threaded view
|

## Re: Info on PermSize and MaxPermSize

 In reply to this post by André Warnier (tomcat)    Could you please tell me how to set -XX:MaxPermSize=96m  and -XX:PermSize=72m in Window Registry, when I start tomcat as window service, it should pass these value to JVM. Can I execute the following command to register "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 256 --JvmMx 512 -XX:MaxPermSize 96m -XX:PermSize=72m On Fri, Mar 16, 2012 at 5:09 PM, André Warnier <[hidden email]> wrote: > Geet Chandra wrote: > .. > > > >>    One more question, I would like to ask, >>   Like ""%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions " >> Djava.io.tmpdir=%CATALINA_**BASE%\temp" --JvmMs 256 --JvmMx 512 " >> >>  How can I set JAVA_OPTS=-Xms256m -Xmx512m using >> ""%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions " >> Djava.io.tmpdir=%CATALINA_**BASE%\temp" >> >> > I am not sure that I really understand your question. > "JAVA_OPTS" is an environment variable, that can be used in *scripts*, > such as for example when you start Tomcat in a command window by using a > .bat script. > But these environment variables are not used when Tomcat runs as a > service, under control of the wrapper program. > In that case, the wrapper picks values out of the Windows Registry, and > uses them to (internally) set the command-line parameters for the JVM, when > it starts the JVM. > The "install" command above sets these Registry values, so that (later) > the wrapper can pick them up, when it starts the JVM. > > The documentation of procrun is sometimes a bit obscure. > As far as I can tell, in your case, there are 2 ways of specifying the > "-XMs" and "-Xmx" switches for the JVM : you can use *either* of > > --JvmMs xxxM  --JvmMx yyyM > > OR > > ++JvmOptions "-Xms...M -Xmx ...M" > > ..I think.. > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<[hidden email]> > For additional commands, e-mail: [hidden email] > > -- Thanks & Regards Geet