Re: high CPU usage on tomcat 7

2012-10-03 Thread Kirill Kireyev
Hi Shanti! The heap size is because I start tomcat with -Xmx26000M option that I added. Here's the full command line: /opt/jdk1.7.0_06//bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-7.0.30/conf/logging.properties -Xmx26000M -Djava.

Re: How to limit the number of sessions per IP address (DOS attacks)

2012-10-03 Thread Brian Braun
Hi Contantine, I barely have about 10-20 sessions existing at the same time, considering already abandones sessions and even sessions created because of crawlers. So it won't be slow to use the getCount() method, at least not for now. Thanks for your comment! On Mon, Oct 1, 2012 at 5:42 AM, Kon

Re: How to limit the number of sessions per IP address (DOS attacks)

2012-10-03 Thread Brian Braun
HI André, You are right, there is a hole there. However, it won't be a problem for me. Basically, I want to detect if the same IP creates so many sessions that in the same time 200 sessions exist and belong to is (the sessions live about 30 min each). My site doesn't have much traffic, usually the

[OT]- MYSQL + Tomcat + Apache + Java Hosting in India

2012-10-03 Thread Kiran Badi
Hi Not sure if this list accepts these types of questions here,still asking shamelessly sorry for this. If anyone knows some good web hosting provider in India, can they reply here or to me privately. I checked with bigrock,rediff and some other known provider like sify and they said that

Programatically Controlling Tomcat 7

2012-10-03 Thread Peloquin, Willie
Hello, Sorry to disturb the list with this question, but I have been looking for the answer online. I know that I can control the Tomcat Manager using text or JMX. http://10.60.28.90:8081/manager/text/list will provide me a list of web services and some status. I read the sections o

Re: Excessive logging with Tomcat 7.0.30 - how to adjust it?

2012-10-03 Thread Konstantin Kolinko
2012/10/3 Joseph Freemaker : > > Just upgraded to Tomcat 7.0.30 from Tomcat 5.5. > > With Tomcat 5.5 the catalina log contained what was directed to it. The > stderr and stdout logs only contained what was directed to them (very little > if anything). > > Tomcat 7.0.30 however is writing to the

Re: Apache + Tomcat + mod_jk ; Why wrong content type?

2012-10-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/3/12 1:47 AM, Joe Hansen wrote: > We are using Apache 2.2 + Tomcat 7 + mod_jk (all 64-bit) on a > RedHat box. > > I have configured the settings such that the static content like > css and javascript are served by httpd rather than tomcat.

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
Hi Kirill, Please feel free to obfuscate username, service name, filesystem directory names, temp-dir names etc. in the command-line output. Mostly interesting things would be GC-related options, JVM heap sizing options, class-loading options, other Java options. But please paste the whole comma

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
Well, Here it is: start_jconsole.sh--- #!/bin/sh export DISPLAY DISPLAY_NUMBER=`echo $DISPLAY | /usr/bin/perl -n -e 'm#localhost:(\d+).0# && print $1'` echo $DISPLAY_NUMBER XAUTH_ENTRY=`/usr/bin/xauth list | grep "unix:$DISPLAY_NUMBER"` sudo su webinf -c "xauth add $XAU

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
Hi Kirill, I am amazed at the size of the Java Heap of 26 GB. I didn't expect that big a size. Before I suggest anything else, please take a look at the filesystem space on "/tmp". The script creates a heapdump everytime it runs as well. So please make sure that "/tmp/" has sufficient storage.

Re: Memory leaks and IllegalStateException caused (probably) by a Singleton object

2012-10-03 Thread Filippo Machi
Ciao Nick, according to my own experience, I saw some logs at SEVERE very similar to what you posted here when I used hot deploy for a web application I worked on and that application used threadlocal variables and launched some threads that tomcat didn't control directly. These logs are part of so

Memory leaks and IllegalStateException caused (probably) by a Singleton object

2012-10-03 Thread Nick Katsipoulakis
Dear list, I am currently developing a Java Web application on a machine with the following attributes: - Ubuntu-Server Edition Linux 12.04 64-bit - Sun java JDK version 7 - Apache Tomcat 7.0.30 - Netbeans IDE, version 7.1.2 My project consists of a SOAP Web service interface, that maintains a

Tomcat 7.0.30 JAR Scanner ClassCastException

2012-10-03 Thread Jesse Farinacci
Greetings, I am using Apache Tomcat 7.0.30 on IBM Java 6. I have a @WebServlet inside a ROOT.war!/WEB-INF/lib/common-servlets.jar which forwards to a JSP located in common-servlets.jar!/META-INF/resources/some.jsp. When I reference the path for this @WebServlet Tomcat throws the following exceptio