RE: FW: Re: tomcat 6.0.41 heap size issue

2016-01-29 Thread Akbar Thanakalacheruvu
Take heap dump using jvisualvm and analyze the objects that stayed in the 
memory. You might get a rootcause to your problem. 
What is the total RAM of your machine? How much you allocated to Tomcat? 
Is any of your users running an application which requires huge amount of heap 
memory? Either tune that particular application or ask your users to try 
minimize/avoid usage of that application.

-Akbar
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Friday, January 29, 2016 7:16 AM
To: Tomcat Users List 
Subject: Re: FW: Re: tomcat 6.0.41 heap size issue

On 29/01/2016 11:07, Guo, Denny wrote:
> Yes, we do have this option on for MaxPermSize, it is set to 512M.
> 
> If that is related to PermSize, should we get this message " 
> java.lang.OutOfMemoryError: PermGen space". However we never see this message 
> in the log.

Use a profiler. Find out what is using all that memory.

Mark


> 
> -Original Message-
> From: kidambi madhu [mailto:madhu.kida...@gmail.com]
> Sent: Thursday, January 28, 2016 11:43 PM
> To: Tomcat Users List
> Subject: Re: FW: Re: tomcat 6.0.41 heap size issue
> 
> Ok What's the size of the war file you have deployed to Tomcat?
> 
> I suspect the problem is with PermSize (The class loading part of JVM) than 
> Heap though the error points out Java Heap.
> 
> Pls set the PermSize with -XX:PermSize and -XX:MaxPermSize options and test.
> 
> Thanks,
> Madhu
> 
> On Fri, Jan 29, 2016 at 8:53 AM, Guo, Denny  wrote:
> 
>> Thanks for quick response. Here is the information.
>>
>> java version "1.6.0_45"
>> Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 
>> 64-Bit Server VM (build 20.45-b01, mixed mode)
>>
>>
>> -Original Message-
>> From: kidambi madhu [mailto:madhu.kida...@gmail.com]
>> Sent: Thursday, January 28, 2016 10:15 PM
>> To: Tomcat Users List
>> Subject: Re: FW: Re: tomcat 6.0.41 heap size issue
>>
>> Hi Denny,
>>
>> Which JDK you are using Oracle JDK/JRockit and which version.
>>
>> Some memory tuning options depend on JDK product used.
>>
>> Thanks,
>> Madhu
>>
>> On Fri, Jan 29, 2016 at 8:39 AM, Guo, Denny 
>> wrote:
>>
>>>
>>> Hi All,
>>>
>>> Looking for help on tomcat heap size issue.
>>>
>>> We are see below GC activity before tomcat reports the heap size error.
>>> Please see below message. However, we assign -Xmx=24G to the heap 
>>> size, why tomcat reports error even not reach 20G heap size usage ?
>>> Can someone please help. How the tomcat decides how much memory 
>>> allocate to young/old generation?
>>>
>>> We are running tomcat 6.0.41 on red hat linux as per our vendor.
>>>
>>> Thanks,
>>> Denny
>>>
>>> 2016-01-28T21:20:56.173-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222720K)], 26.7667120 secs] [Times:
>>> user=26.77 sys=0.01, real=26.76 secs]
>>> 2016-01-28T21:21:22.942-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222720K)], 26.5016220 secs] [Times:
>>> user=26.51 sys=0.01, real=26.50 secs]
>>> 2016-01-28T21:21:49.444-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222912K)], 26.7081550 secs] [Times:
>>> user=26.70 sys=0.01, real=26.70 secs]
>>> 2016-01-28T21:22:16.154-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222912K)], 26.7299520 secs] [Times:
>>> user=26.73 sys=0.01, real=26.72 secs]
>>> 2016-01-28T21:22:42.884-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222912K)], 26.7488570 secs] [Times:
>>> user=26.75 sys=0.00, real=26.75 secs]
>>> 2016-01-28T21:23:09.635-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777215K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222912K)], 26.7899470 secs] [Times:
>>> user=26.80 sys=0.00, real=26.79 secs]
>>> 2016-01-28T21:23:36.425-0500: [Full GC [PSYoungGen:
>>> 761K->761K(2880K)]
>>> [PSOldGen: 16777215K->16777216K(16777216K)]
>>> 16777977K->16777977K(16780096K)
>>> [PSPermGen: 222628K-222628K(222912K)], 43.0072820 secs] [Times:
>>> user=43.01 sys=0.02, real=43.00 secs]
>>> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
>>> [PSOldGen: 16777216K->632811K(4342144K)]
>>> 16777977K->632811K(4345024K)
>>> [PSPermGen: 222628K->222628K(222912K)], 4.9992850 secs] [Times:
>>> user=4.96 sys=0.04, real=5.00 secs]
>>> 2016-01-28T21:24:19.435-0500: [Full GC [PSYoungGen: 761K->0K(2880K)]
>>> [PSOldGen: 

Frequent tomcat outages

2015-12-09 Thread Akbar Thanakalacheruvu
Hi

We are using Tomcat 7.0.62 (with JVM version 1.7.0_79-b15) in our production 
servers. This web server has 16 GB RAM and out of which we allocated 12 GB RAM 
(xms and xmx) to tomcat (through Tomcat7w.exe).
When I monitor tomcat manager application, I see that "CMS old Gen" is 
increasing minute to minute and it is reaching to 99% (11 GB) in less than 12 
hrs.

I am not sure why this memory is not clearing out. Are there any settings that 
you can suggest which can help this "CMS old Gen" to be under control?
I see lot many "OutOfMemory" errors in Tomcat logs which were caused by our 
Java application(which is a 3rd party application). I tried to take heapdump 
using the below command, but it failed saying "insufficient memory" error.

Command: jmap -dump:format=b,file=snapshot.jmap process-pid

Not sure how to proceed further to get out of these "OutOfMemory" errors. 
Please help.

-Akbar


How to upgrade Tomcat

2015-06-08 Thread Akbar Thanakalacheruvu
Hi

How to upgrade Tomcat from 7.0.37 to 7.0.62 ? Are there any instructions or 
document for the same?

Thanks for the help in advance.

-Akbar

This message and any attachments thereto contain information that may be 
privileged, confidential or otherwise protected from disclosure and is the 
property of SumTotal Systems, LLC  It is intended only for the person to whom 
it is addressed.  If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message, any 
attachments thereto or any part thereof.  If you receive this message in error, 
please notify me at 
akb...@sumtotalsystems.commailto:akb...@sumtotalsystems.com and delete all 
copies of this message and attachments.   SumTotal Systems, LLC has implemented 
anti-virus software on its computers and servers, however, it is the 
recipient's own responsibility to ensure that all attachments are scanned for 
viruses prior to usage.


RE: SSL Issue on the 443 port on tomcat7

2015-03-19 Thread Akbar Thanakalacheruvu

-Original Message-
From: Vijay Karthick [mailto:vijaykarthic...@gmail.com]
Sent: Thursday, March 19, 2015 12:11 PM
To: users@tomcat.apache.org
Subject: Fwd: SSL Issue on the 443 port on tomcat7

Hi,

In SAP BO environment, the SSL has been enabled in the Tomcat7 version.
However, the Tomcat is not initializing. Its states that password error.
I've recreated the keystore file. However, we're unable to fix it. Please refer 
the Log on the Tomcat folder.



Server.xml :


Connector port=443 protocol=HTTP/1.1 SSLEnabled=true

   maxThreads=150 scheme=https secure=true

   clientAuth=false sslProtocol=TLS
maxHttpHeaderSize=65536 keystore=D:\SAP 
BusinessObjects\Tomcat6\conf\.keystore keypass=Password /


The tomcat logs folder file stderr files give the below log,



2015-03-18 23:10:01 Commons Daemon procrun stderr initialized

Mar 18, 2015 11:10:02 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the
java.library.path: C:\Windows\SysWOW64\;D:\SAP BusinessObjects\SAP 
BusinessObjects Enterprise XI 4.0\win64_x64\

Mar 18, 2015 11:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule
begin

WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
'keystore' to 'D:\SAP BusinessObjects\tomcat\conf\.keystore' did not find a 
matching property.

Mar 18, 2015 11:10:02 PM org.apache.catalina.startup.SetAllPropertiesRule
begin

WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 
'keypass' to 'Password' did not find a matching property.

Mar 18, 2015 11:10:02 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler [http-bio-443]

Mar 18, 2015 11:10:03 PM org.apache.coyote.AbstractProtocol init

SEVERE: Failed to initialize end point associated with ProtocolHandler 
[http-bio-443]

java.io.IOException: Keystore was tampered with, or password was incorrect

  at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)

  at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)

  at java.security.KeyStore.load(KeyStore.java:1183)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:407)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:306)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:565)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:505)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:449)

  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:158)

  at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)

  at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)

  at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)

  at
org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

  at
org.apache.catalina.connector.Connector.initInternal(Connector.java:981)

  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

  at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

  at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)

  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

  at org.apache.catalina.startup.Catalina.load(Catalina.java:633)

  at org.apache.catalina.startup.Catalina.load(Catalina.java:658)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)

  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)

Caused by: java.security.UnrecoverableKeyException: Password verification failed

  at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)

  ... 26 more

--



Vijay

The attributes that you mentioned in the server.xml file should be corrected as 
follows

keystore with keystoreFile
keypass with keyPass  (P is Capital here)

-Akbar





This message and any attachments thereto contain information that may be 
privileged, confidential or otherwise protected from disclosure and is the 
property of SumTotal Systems, LLC  It is intended only for the person to whom 
it is addressed.  If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message, any 
attachments thereto or any part thereof.  If you receive this message in error, 
please notify 

Need settings/configuration details to improve tomcat performance

2013-09-11 Thread Akbar Thanakalacheruvu
Hi All

We are deploying around 10 to 15 websites on a tomcat server where each website 
will have concurrency of 100 users at a given time.
This concurrency will continue though out the day.

So, I need settings/configuration details of tomcat server to improve its 
performance.
Please forward/suggest me if you have any information on this.

Regards
Akbar

This message and any attachments thereto contain information that may be 
privileged, confidential or otherwise protected from disclosure and is the 
property of SumTotal Systems, LLC  It is intended only for the person to whom 
it is addressed.  If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message, any 
attachments thereto or any part thereof.  If you receive this message in error, 
please notify me at 
akb...@sumtotalsystems.commailto:akb...@sumtotalsystems.com and delete all 
copies of this message and attachments.   SumTotal Systems, LLC has implemented 
anti-virus software on its computers and servers, however, it is the 
recipient's own responsibility to ensure that all attachments are scanned for 
viruses prior to usage.