Re: Tomcat 6.0.20 is running out of memory

2010-05-23 Thread Juha Laiho

On 05/21/2010 01:57 PM, kent.anders...@tieto.com wrote:

Hi,

The Tomcat webserver 6.0.20 we are using has run out of memory.
Got the following message in the Catalina.out file:
less /opt/jakarta/tomcat/logs/catalina.out
...
java.lang.OutOfMemoryError: Java heap space

...

 at org.apache.jsp.contents_jsp._jspService(contents_jsp.java:174)

...
  at 
org.apache.jsp.mainpage_jsp._jspService(mainpage_jsp.java:109)


... so, it seems that this did happen when someone was accessing
your mainpage.jsp, at the point where the mainpage.jsp was including
its contents.jsp (could be close to the end of contents.jsp processing,
as the stack contained references about releasing pagecontext).


It might help to look at the contents.jsp of your application, and
especially the Java file created from the contents.jsp, at line 174.
(you'll need to override the global jspservlet definition in your
applications web.xml to prohibit tomcat from removing the java code
generated from the jsp files). Reviewing the pagecontext data
structure for the contents.jsp might also help.

It's a bit curious that the actual JSP row number is not in the log,
but then apparently this even has not happened strictly during the
processing of that JSP (but still does have some relation to it).

As for the question on amount of memory needed by Tomcat, Tomcat
doesn't need that much - but your application might. Please, please,
try to also look at the application you've built on top of Tomcat,
and find out whatever memory requirements it might have.
--
..Juha

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-23 Thread Pid
On 22/05/2010 23:23, ago...@libero.it wrote:
 
 Thanks for response.
 
 The first server on I install tomcat 5.5.28 is win2003 server and after I 
 install jboss on win2008 server .
 All server have  32bit SO and i don't have a firewall . I disenable all 
 firewall, all antivirus. 
 
 I suppose that two different errors regard different JVM and/or Application 
 server (first Tomct 5.5.28 on win2003 and after Jboss4.2.3GA on win2008)
 At any rate i have now only log by Tomcat 5.5.28 under win2003:


 But don't have a intere log file.
 May be IPV6? I don't disinstall this protocol becuse is important on win2008, 
 but i hve clent that use IPV4.

Do you have any other services running on the server that might
interfere with this one, by binding to the ports you have configured?

Try using the netstat command to see what ports and addresses the
server is listening on.

 
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netstat.mspx?mfr=true

To eliminate the ip4/ip6 problem, you can specify an address=n.n.n.n
for the connector to bind to, in server.xml.  (where n.n.n.n is the IP
v4 address assigned to your server).


p

 Have you  n idea?
 How can resolve  problem.
 Plese is imporatnt for me?
 
 Messaggio originale
 Da: p...@pidster.com
 Data: 22/05/2010 12.47
 A: Tomcat Users Listusers@tomcat.apache.org
 Ogg: Re: intermittent SocketException on startup tomcat 5.5.28 and under 
 JBOSS 4.2.3GA

 On 22/05/2010 09:28, ago...@libero.it wrote:
 Good Morning

 Excuse  for my poor english

 I have a strange error that  occours  on startup and after some minutes 
 this
 cause the block of  my appliction, only stop webserver from  lot minutes or
 restart  server sometime resolve the problem. But often the problem 
 persist.

 In Short:
 I have a web appliction deployed initially under tomcat 5.5.28 (with jre-
 1_5_0_22 and SO win2003 Server 32 bit) that sometimes cause specially on
 startup the follow error:

 17-apr-2010 7.00.49 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.01.10 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.33 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.52.54 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 AVVERTENZA: Reinitializing ServerSocket
 17-apr-2010 7.52.55 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
 GRAVE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,
 localport=443]]
 ignored exception: java.net.SocketException: socket closed
 java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(Unknown Source)
 at java.net.ServerSocket.implAccept(Unknown Source)
 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(Unknown Source)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket
 (JSSESocketFactory.java:117)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
 java:408)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:71)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.
 java:689)
 at java.lang.Thread.run(Unknown Source)
 17-apr-2010 7.53.16 

R: Re: intermittent SocketException on startup tomcat 5.5.28 and under JBOSS 4.2.3GA

2010-05-23 Thread ago...@libero.it

Thanks for response.
I alredy use netstat and not appear nothing of strange.I have connection on 
IPV4/IPV6
it look as:

 Proto  Indirizzo locale   Indirizzo esterno   Stato
 TCP0.0.0.0:80 0.0.0.0:0  LISTENING
 TCP0.0.0.0:1350.0.0.0:0  LISTENING
 TCP0.0.0.0:4430.0.0.0:0  LISTENING
 TCP0.0.0.0:1098   0.0.0.0:0  LISTENING
 TCP0.0.0.0:1099   0.0.0.0:0  LISTENING
 TCP0.0.0.0:1433   0.0.0.0:0  LISTENING
 TCP0.0.0.0:3389   0.0.0.0:0  LISTENING
 TCP0.0.0.0:3873   0.0.0.0:0  LISTENING
 TCP0.0.0.0:   0.0.0.0:0  LISTENING
 TCP0.0.0.0:4445   0.0.0.0:0  LISTENING
 TCP0.0.0.0:4446   0.0.0.0:0  LISTENING
 TCP0.0.0.0:4999   0.0.0.0:0  LISTENING
 TCP0.0.0.0:8009   0.0.0.0:0  LISTENING
 TCP0.0.0.0:8083   0.0.0.0:0  LISTENING
 TCP0.0.0.0:8093   0.0.0.0:0  LISTENING
 TCP0.0.0.0:49152  0.0.0.0:0  LISTENING
 TCP0.0.0.0:49153  0.0.0.0:0  LISTENING
 TCP0.0.0.0:49154  0.0.0.0:0  LISTENING
 TCP0.0.0.0:49155  0.0.0.0:0  LISTENING
 TCP0.0.0.0:49159  0.0.0.0:0  LISTENING
 TCP0.0.0.0:61028  0.0.0.0:0  LISTENING
 TCP0.0.0.0:61029  0.0.0.0:0  LISTENING
 TCP0.0.0.0:61030  0.0.0.0:0  LISTENING
 TCP0.0.0.0:61032  0.0.0.0:0  LISTENING
 TCP127.0.0.1:1433 127.0.0.1:61047ESTABLISHED
 TCP127.0.0.1:1433 127.0.0.1:61048ESTABLISHED
 TCP127.0.0.1:1434 0.0.0.0:0  LISTENING
 TCP127.0.0.1:61047127.0.0.1:1433 ESTABLISHED
 TCP127.0.0.1:61048127.0.0.1:1433 ESTABLISHED
 TCP192.160.0.200:139  0.0.0.0:0  LISTENING
 TCP192.160.0.200:3389 192.168.0.18:29440 ESTABLISHED
 TCP192.160.0.200:61013192.160.0.223:445  ESTABLISHED
 TCP[::]:80[::]:0 LISTENING
 TCP[::]:135   [::]:0 LISTENING
 TCP[::]:443   [::]:0 LISTENING
 TCP[::]:1098  [::]:0 LISTENING
 TCP[::]:1099  [::]:0 LISTENING
 TCP[::]:1433  [::]:0 LISTENING
 TCP[::]:3389  [::]:0 LISTENING
 TCP[::]:3873  [::]:0 LISTENING
 TCP[::]:  [::]:0 LISTENING
 TCP[::]:4445  [::]:0 LISTENING
 TCP[::]:4446  [::]:0 LISTENING
 TCP[::]:8009  [::]:0 LISTENING
 TCP[::]:8083  [::]:0 LISTENING
 TCP[::]:8093  [::]:0 LISTENING
 TCP[::]:49152 [::]:0 LISTENING
 TCP[::]:49153 [::]:0 LISTENING
 TCP[::]:49154 [::]:0 LISTENING
 TCP[::]:49155 [::]:0 LISTENING
 TCP[::]:49159 [::]:0 LISTENING
 TCP[::]:61028 [::]:0 LISTENING
 TCP[::]:61029 [::]:0 LISTENING
 TCP[::]:61030 [::]:0 LISTENING
 TCP[::]:61032 [::]:0 LISTENING
 TCP[::1]:1434 [::]:0 LISTENING
 UDP0.0.0.0:123*:*
 UDP0.0.0.0:500*:*
 UDP0.0.0.0:4500   *:*
 UDP0.0.0.0:5355   *:*
 UDP127.0.0.1:51207*:*
 UDP127.0.0.1:51211*:*
 UDP127.0.0.1:61591*:*
 UDP192.160.0.200:137  *:*
 UDP192.160.0.200:138  *:*
 UDP[::]:123   *:*
 UDP[::]:500   *:*


 
Ok the actul situation is:
JBOSS on port 80 (i start jboss service with bind=0.0.0.0)
other port 80 also port 443 i have enable. So the actul connector 
configuration in C:\jboss-4.2.3.GA\server\default\deploy\jboss-web.
deployer\server
are:

Connector port=80 address=${jboss.bind.address}
 minSpareThreads=50 maxSpareThreads=150
 maxThreads=350 maxHttpHeaderSize=8192
 emptySessionPath=true protocol=HTTP/1.1
 enableLookups=false redirectPort=443 acceptCount=200
 connectionTimeout=2 disableUploadTimeout=true /

 Connector port=443 address=${jboss.bind.address} protocol=HTTP/1.1 
SSLEnabled=true
   minSpareThreads=25 maxSpareThreads=100 
   maxThreads=250 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   

question for singlesignon for vertical cluster

2010-05-23 Thread Okubo, Yasushi (TSD)
Hi

 

I would like to enable singlesignon on vertical cluster environment
[multi-nodes on multiple hosts].

 

We are using clustersinglesignon under host element, and this works in
horizontal cluster, but does not work in vertical cluster environment.

 

Is there any way to make this work as part of tomcat configuration?
When the node goes down, and a user may be routed to the node located in
a different host, it will ask a user to relogin again under the current
setup.  We would like to avoid a user for relogging to the application. 

 

Anyway, if tomcat does not provide singlesigeon solution for vertical
cluster, is there any other open source solutions available?

 

Thanks,

yasushi

 

OS: linux/redhat 5 - 64 bit

Jvm : 1.6.x

Tocmat : 6.0.24/26

 

Host name=localhost  appBase=webapps

unpackWARs=true autoDeploy=true

xmlValidation=false xmlNamespaceAware=false

 

Valve
className=org.apache.catalina.ha.authenticator.ClusterSingleSignOn /

 

 



Re: Tomat monitoring

2010-05-23 Thread ntwrkd
Hyperic works well for Tomcat monitoring and has native support for it.
I prefer this solution. Or you can always create your own custom
monitoring solution provided a JMX port is open.

On Fri, May 21, 2010 at 4:54 AM, Leon Rosenberg
rosenberg.l...@gmail.com wrote:
 On Fri, May 21, 2010 at 9:33 AM,  ever...@free.fr wrote:

 Hi all,

 I work on JavaMelody and I can speak about the question of jconsole or
 javamelody for Tomcat monitoring.

 The main differences between jconsole and javamelody is IMHO that jconsole 
 will
 be used occasionally in QA or production for a few minutes or a few hours,
 whereas javamelody will be always enabled in the application in QA or 
 production
 with reports for current day, week, month or current year.
 agreed.
 ...


 Is JavaMelody used in production? Yes, some people said so in the users 
 group:
 http://groups.google.fr/group/javamelody or in private.
 I use it myself for several applications, one of which costs 25 person years.

 Sorry, what does that mean? There are 25 person years invested in the
 development of the application? or in the development of javamelody.

 regards
 Leon




 Any problems? In general, JavaMelody is installed in 10 minutes for a good
 developer (as JavaMelody is opensource and free, there is no budget to find).
 And sometimes, some applications need a bit more configuration:
 http://code.google.com/p/javamelody/wiki/UserGuide

 Yet another java monitoring framework ;-)



 Please note that the target of JavaMelody is not content portals such as
 www.acikkod.org, but more on intranet applications using databases (+ hudson,
 grails, jira and soon confluence and bamboo).

 bye, Emeric
 ever...@free.fr


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org