Re: Tomcat monitoring

2008-08-14 Thread Kees Jan Koster
Dear Tokajac, I want to monitor performance of Tomcat server when I'm running an application. Memory usage, threads, objects, user sessions, sql queries and as much as possible of other information on server. JMX is the way to go. JConsole was already suggested. If you want to really monitor

Re: Tomcat monitoring

2008-08-15 Thread Kees Jan Koster
Dear Tokajac, As far as I see http://www.zabbix.com http://www.zabbix.com is not available for WinXP (that's my platform). *shrug* You could always run it on FreeBSD or Linux in VMWare. I downloaded Zapcat. Can Zapcat be useful without zabbix? No, it only works as a bridge to Zabbix.

Re: Disabling catalina.out log

2008-08-19 Thread Kees Jan Koster
Dear Irwan Hadi, Just curious if anybody knows how to disable tomcat from logging to catalina.out, possibly by editing the server.xml file? check out ${tomcat}/conf/logging.conf True that we can link catalina.out to /dev/null or truncate the file every now and then, but we prefer to use a

Re: Disabling catalina.out log

2008-08-20 Thread Kees Jan Koster
Dear Emerson, Truncating? It should be a rolling file, rolling over daily. You can just remove the old versions. Is this a stock tomcat, one from the ports, or maybe a particularly old one? catalina.out is set at the catalina.sh: $CATALINA_BASE/logs/catalina.out 21 This file is not

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Kees Jan Koster
Dear Bill, I've been through the docs. I've been through Google. I can't seem to figure this out. Server: Tomcat 6.0.18, JDK: 1.6.0_07, Redhat Server 5.2 Client: jconsole from JDK 1.6.0_07 on Windows XP I've got all of these in $CATALINA_OPTS and they do show up in the java command line

Re: Custom error page with stacktrace

2008-08-24 Thread Kees Jan Koster
Dear All, In your error page, the variable exception is set to the exception (if any). You can get the error message and stack trace from the exception like this: pException message: %= (exception == null) ? : exception.getMessage() %/p % String stStack = ; if (exception != null) {

Re: Tomcat ignores the missing JDBC DataSource reference in web.xml

2008-08-24 Thread Kees Jan Koster
Dear Gennady, My web.xml descriptor missing reference to JDBC data source defined in context.xml (resource-ref section), but web application runs just fine and pooled data source consumed by hibernate. Same here. I read somewhere that the tutorials are wrong and the this is the way it's

Re: override 100-continue response in servlet

2008-08-24 Thread Kees Jan Koster
Dear Craig, I'm writing a servlet to allow large-file uploads (with ranges and resume). One issue I noticed was that if the range is invalid (I do the checks in doPut), and I return a 416, the client (curl in this case) continues to upload the body (possibly gigabytes of data that will

Re: Tomcat 5.5.26 OutOfMemoryError -Xms -Xmx Set

2008-08-29 Thread Kees Jan Koster
Dear Tom, I'd like to confirm that I am trying the right things in fixing a memory error and discover what else I can do to resolve my problem. I realise this is a common problem as I have Googled, read the Tomcat memory FAQ and searched the mailing lists. I have tried looking at catalina.out

Re: problem in running Jconsole remotely --Connection refused

2008-10-02 Thread Kees Jan Koster
Dear Subhrajyoti, I am facing problem in running Jconsole remotely . In my machine from where I am running Jconsole I have jdk1.6...I am trying to connect to TOmcat6.0.18 running on a windows 2003 server machine(with JDK 1,5) ...I have a batch file with the following contents :

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-10-02 Thread Kees Jan Koster
Dear Mark, I got bitten by this recently. I am working on a LifecycleListener (that can be configured in server.xml) that fixes both ports that are used by jconsole. This makes it much easier to configure firewalls, tunnel through PuTTY etc. If I get it finished in time, it will be in

Re: How do you have your dev environment setup?

2008-10-02 Thread Kees Jan Koster
Dear All, I've been doing a lot of webapp development on tomcat, but currently my process is all manual. I write the code in Eclipse, and then copy the appropriate files over to tomcat. I'd like to automate and standardize my process. So would y'all mind explaining how your dev

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-10-03 Thread Kees Jan Koster
Dear Martin, http://www.jdocs.com/tomcat/6.0.14/org/apache/catalina/ServerFactory.html ServerFactory.getServer() will return org.apache.catalina.ServerFactory Thanks for the information. I changed the mbean server code to make use of all available mbean servers and now my code can always

Re: Using tomcat to hold many open connections.

2008-10-06 Thread Kees Jan Koster
Dear Uprooter, I'm looking for a server that has to hold many (web services) remote clients for controlling them. I want to do things like sending power off command to a bunch of machines remotely. Building a botnet? :-) The clients are usually windows machines behind firewalls NAT or

Re: Change Tomcat's bind address?

2008-11-13 Thread Kees Jan Koster
Dear Søren, How do i change Tomcat 6's bind address? http://java-monitor.com/forum/showthread.php?t=32 -- Kees Jan [EMAIL PROTECTED] 06-51838192 Rule 1 for being in a hole: stop digging. - To start a new topic, e-mail:

Re: Apache 6.0.16

2008-11-13 Thread Kees Jan Koster
Dear Dan, Yes it works with apache-tomcat.5.5.25, the port comes up and listens on Port 8005. I can stop and start at will, no problem. The installation I have is 6.0.16, no mods to server.xml and this is one that throws the error. Strange. When I try a stock 6.0.16, freshly downloaded

Re: Problem to install APR Tomcat Native Library

2008-11-13 Thread Kees Jan Koster
Der Torsten, I got it sorted out with ldd as suggested here on the list but it is certainly good to know about truss - thank you! I am curious what performance gain APR has for your application server. Did you do any load tests? If so, could you please publisch the results? -- Kees Jan

Re: Apache 6.0.16

2008-11-13 Thread Kees Jan Koster
Dear Dan, Thanks for the info, I have verified that my existing Tomcat is offline. My existing Apache Tcat 5.5.25 binds to the port without incident, only the out of the box 6.0.16 is causing the problem, with the identical message as yours. I'm using netstat -an |grep 8005 on AIX, to

Re: Logging Tomcat errors

2008-11-14 Thread Kees Jan Koster
Dear Peter, I guess it should be easy enough to distinguish between severe errors and ordinary errors, but how do you distinguish between 500 errors application runtime errors? I specifically want to report errors that occur at the container level and not at the application level... I

Re: Debian + Apache 2.2 + Tomcat 5.5

2008-11-14 Thread Kees Jan Koster
Dear Alex, The debian Tomcat package is notoriously hard to use. In your shoes I would switch to a normal Tomcat server from apache.org. In /usr/share/tomcat5.5-webapps/ I move the folder ROOT to ROOT_BACK and move my App folder shop_v1 to ROOT After that and a restart of Tomcat... nothing

Re: Request Logging in Tomcat 6

2008-11-18 Thread Kees Jan Koster
Dear Raphael, I've been working with performance measurements of web services and I've faced this problem. For each request to my system (running in a tomcat 6) I need to log these information: Received Bytes (request content length) Served Bytes (response content length) Response Time

Re: Request Logging in Tomcat 6

2008-11-18 Thread Kees Jan Koster
Dear Raphael, I've been working with performance measurements of web services and I've faced this problem. For each request to my system (running in a tomcat 6) I need to log these information: Received Bytes (request content length) Served Bytes (response content length) Response Time

Hard limits in Tomcat?

2008-11-18 Thread Kees Jan Koster
Dear All, I am setting up a monitoring system for Tomcat servers and I am looking for hard limits in Tomcat servers in general. I found a few so far: file descriptors, memory pools (ok, these are jdk limits) and thread pools. Are there any other hard limits that I can run into? -- Kees

Re: Tomcat vs Daemons

2008-11-18 Thread Kees Jan Koster
Dear Nate, I am porting an application from Windows to Linux which makes heavy use of servlets. I have a fairly intensive background process (currently a windows service) that requires no user interaction. I plan to rewrite the code in Java and I am wondering if there is any notable

Re: Tomcat request processing gets stuck

2008-11-18 Thread Kees Jan Koster
Deear Michal, When i checked the tomcat using jconsole i see that the object RequestProcessor accumulates to many objects which i guess may show the cause of this problem. Uhm. Could you explain what you mean here? I don't understand what you are trying to say. You see too many request

Re: Tomcat Hanging Intermittently

2008-11-18 Thread Kees Jan Koster
Dear Gaurav, I have tomcat server with apache (mod_jk) and mysql running on my box. Initially there were no issues with the server. But from past one month, the tomcat application hangs and websites also doesn't open. Though when i run nmap localhost, it shows me 8080 and ajp13 services

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Chris, I am setting up a monitoring system for Tomcat servers and I am looking for hard limits in Tomcat servers in general. I found a few so far: file descriptors, memory pools (ok, these are jdk limits) and thread pools. Are there any other hard limits that I can run into? I

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, I think the question you wanna ask yourself first is, do you want to monitor tomcat or do you want to monitor your application? I want to monitor Tomcat, not the application. I'm using the information to improve the Tomcat monitoring on Java-monitor.com. Currently you can see

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, is there a demo available on the java-monitor.com? sofar i only find a php forum :-) The forum has the monitoring tool built-in. A bit weird at forst, but it makes it really simple to post questions, as you can just post graphs from the tool right on the forum. No need to make

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Chris, Ah, sorry for the confusion. I should have asked for limits that are hard at run-time. Thread pool sizes may be editable, but they are fixed once Tomcat runs. Gotcha. Hard runtime limits makes a whole lot more sense. Sorry for not jumping to that obvious conclusion. I wasn't

Re: Hard limits in Tomcat?

2008-11-19 Thread Kees Jan Koster
Dear Leon, well, downloaded, installed, started, klicked, ... deleted... you should announce that your war is SENDING DATA to the central server in LARGE letters :-) which users are you targeting? No one i know (and i'm in the webapp business for about 10 years) will ever going to use this

Re: Hard limits in Tomcat?

2008-11-20 Thread Kees Jan Koster
Dear Leon, Oh, don't be so dramatic. There is a whole world out there of smaller companies that have one or two Tomcat servers in production, running on the cheapest shared server environment they could find. This product targets companies that have two or three developers, one of whom has

Re: How to prevent Tomcat redirect my request

2008-11-20 Thread Kees Jan Koster
Dear Jim, I deployed a web application foo.war into tomcat 5.x . When I used httpclient to send post request to http://localhost:8080/foo;, I always get the http 302 redirect response . How can I prevent Tomcat to reply redirect response and directly adding the slash to my request url

Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-21 Thread Kees Jan Koster
Dear Toby, Another thing I have found is that Tomcat slows down when a lot of people are connected and requesting to the DB. My maxActive = '150' for the database and maxThreads = '300'. The task manager doesn't show high CPU usage and there is always atleast 2GB RAM free. Any ideas on why this

Re: mysql timeout

2008-11-22 Thread Kees Jan Koster
Dear Adam, 2 - use something like DBCP to enforce a validation query for the connection from the pool. Does anyone have any feedback/advise on this issue? It appears to be quite common. I am running on Redhat Linux, Tomcat 5.5.26 Perhaps this discussion is useful to you?

Re: Threadpool doesn't contain any threads

2008-11-26 Thread Kees Jan Koster
Dear Praveen, Everyday we are noticing the tomcat not responding on a port. On further inspection we noticed that the thread pool that is serving this port has no threads. Right around the time tomcat goes into this state, we noticed that there is a thread death, and get the following

Re: What does tomcat look like?

2008-11-26 Thread Kees Jan Koster
Dear Leon, http://images.google.de/images?q=tomcat%20architectureie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-aum=1sa=Ntab=wi Thanks for the help. I had already entered the exact same query earlier today. depends on your desired detail grade. Well, more than what these

What does tomcat look like?

2008-11-26 Thread Kees Jan Koster
Dear All, I am looking for a good architecture drawing of Tomcat. I found lots of text descriptions of what Tomcat looks like internally, but I am looking for a graphical representation. Preferably one that shows internal components such as thread pools and connectors. I found many

Re: Threadpool doesn't contain any threads

2008-11-26 Thread Kees Jan Koster
Dear Praveen, And what about my question below? Did anyone else notice this issue. Another minor caveat is, we built Tomcat using JDK 1.5 but are running it on JDK 1.6. Could this be causing any issue? Hum. You built your own Tomcat? Is there a test environment that you can test this

Re: Configuration Quandary - Servicing static page from app root

2008-11-29 Thread Kees Jan Koster
Dear John, Sure would appreciate some feedback or ideas on this... Have you looked at Apache's mod_rewrite at all? I sounds like that module might help. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 The secret of success lies in the stability of the goal. --

Re: When does Tomcat throw an OutOfMemory exception?

2008-11-30 Thread Kees Jan Koster
Dear Chuck, To add to Leon's list: running out of file descriptors. Actually, in such situations you get 'java.io.IOException: Too many open files' or 'java.net.SocketException: Too many open files'. Not an OutOfMemory error. /nitpick -- Kees Jan http://java-monitor.com/forum/ [EMAIL

Re: When does Tomcat throw an OutOfMemory exception?

2008-11-30 Thread Kees Jan Koster
Dear Chuck, Actually, in such situations you get 'java.io.IOException: Too many open files' or 'java.net.SocketException: Too many open files'. Not an OutOfMemory error. Only if it's related to an application-initiated action, such as opening a stream. If FD exhaustion is detected

Re: configure JNDI to avoid error Last packet sent to the server was xxxxx ms ago

2008-12-07 Thread Kees Jan Koster
Dear removeps-groups, How to configure JNDI in order to avoid the error Last packet sent to the server was x ms ago.? I've seen two other errors which seem to be from the same cause: Communications link failure and Connection.close90 has already been called. This is what I've come

Re: configure JNDI to avoid error Last packet sent to the server was xxxxx ms ago

2008-12-09 Thread Kees Jan Koster
server, you've wasted your time. Sorry. :-) Have you managed to fix your connection pool issues? Kees Jan --- On Sun, 12/7/08, Kees Jan Koster [EMAIL PROTECTED] wrote: From: Kees Jan Koster [EMAIL PROTECTED] Subject: Re: configure JNDI to avoid error Last packet sent to the server was x

Re: configure JNDI to avoid error Last packet sent to the server was xxxxx ms ago

2008-12-09 Thread Kees Jan Koster
server, you've wasted your time. Sorry. :-) Have you managed to fix your connection pool issues? Kees Jan --- On Sun, 12/7/08, Kees Jan Koster [EMAIL PROTECTED] wrote: From: Kees Jan Koster [EMAIL PROTECTED] Subject: Re: configure JNDI to avoid error Last packet sent to the server was x

Re: Question on JVM memory in tomcat

2008-12-13 Thread Kees Jan Koster
Dear user080701, I am using the tomcat manager to monitor the health of the tomcat server. I found that the session of JVM, it shown the following information: JVM Free memory: 38.13 MB Total memory: 111.18 MB Max memory: 1365.37 MB As David pointed out, this is probably measured against

Re: How to serve JSPs (and other resources) from within a jarfile?

2008-12-16 Thread Kees Jan Koster
Dear Simon, I have embedded the jspwiki project within my own webapp, to provide a help engine. The jspwiki project provides java classes (in a jarfile) plus some .jsp files and assorted resource-files (images, scripts, etc). Currently I put all the java classes as a jarfile in my classpath

Re: How do you determine the amount of Tomcat threads in use?

2008-12-17 Thread Kees Jan Koster
Dear Mark, Just a quick question on how to see threads in use, I have been using prstat -L -p tomcat java process, however I suspect this is not the correct way to do it. You can also attach jconsole of vsiualvm to check. That has the added benefit of being able to see not only the

Re: No printer found error on Tomcat restart

2008-12-17 Thread Kees Jan Koster
Dear Tony, We have a Tomcat 5.5.20 installation running as a service on Windows 2003 Server standard x64 operating system using version 1.6.0_07 (x86) jre. The Tomcat service is running as a user which has all administrator rrights and is started automatically on server startup. Are

Re: Redeploy leaks

2008-12-21 Thread Kees Jan Koster
Dear Adriano, As I had having OutOfMemory exceptions (PermGen) when redeploying an application, I started to verify things using Eclipse Memory Analyzer. I've discovered some real leaks, for example caused by the Java Disposer thread being instantiated using the Webapp classloader. After

Re: Sessions not releasing for apache-tomcat 5.5.23

2008-12-21 Thread Kees Jan Koster
Dear Sudip, But recently there are couple of occasions where one or more users are failing to forcefully logoff the session.(thelogs shows clearly the pending sessions keeps on increasing and the value unbound is never called for the particular user failing to forcefully logoff. Well, we

Re: Tomcat MySQL Server Configuration

2008-12-21 Thread Kees Jan Koster
Dear Carl, I am trying to figure out the best way to configure a multi-server setup for Tomcat and MySQL. Someone gave me the a list of configuration suggestions (see link below). My question is is configuration 3 (see link below) a good way to go when scaling up from our current

Re: Performance with Tomcat

2008-12-22 Thread Kees Jan Koster
Dear Chris, We've been running into some issues lately with our Tomcat 6 instances where performance will slow to a crawl. Unfortunately, no error messages are present in the logs and we really don't know why this is happening. It does appear that the issue is happening when we get a

Re: Tomcat 5.5 error

2008-12-25 Thread Kees Jan Koster
thank u again. I have downloaded the binary version and placed it on my desktop and And ran it using sh startup.sh. and then I access the http://localhost:8080/ site successfully. but when i try to access http://localhost:8080/mms_test. I get the same error as before. However when I try to

Re: Servlets works fine, JSP's don't

2009-01-02 Thread Kees Jan Koster
Dear davefury, The logs doesn't give me any information about the error. The environment is Debian Etch with Apache2, mod_jk connector and tomcat 5. Hmmm, Debian... Are you using the sucky repackaged Tomcat from the distro, or the normal one that you downloaded from tomcat.pache.org

Re: what have i done to get 9 million cookies?

2009-01-06 Thread Kees Jan Koster
Dear Leon, i'm performing a jmap -histo:live on a tomcat which froze because of full (8GB) old space gen, and my top 10 looks like: num #instances #bytes class name -- 1: 19268009 2655683368 [C 2: 17410092

Re: Tomcat ./shutdown

2009-01-07 Thread Kees Jan Koster
Dear Thinh, I use apache-tomcat-5.5.17 and sometimes when I call ./shutdown.sh, the java process which runs Tomcat still alive. Because this java process is still alive, the next call ./startup.sh does not work. Thus, I have to kill this Java process first. Could you please give me a

Re: Tomcat restart using code

2009-01-07 Thread Kees Jan Koster
Dear Mike, Since I have not found a documented way of refreshing the ServerSocketFactory (in order to reload the ssl trust store) I would like to be able to perform a Tomcat Restart from within i.e. restart Tomcat using java code inside the servlet. Restarting the connector would also do the

Re: Pros and cons of readonly UserDatabase (tomcat-users.xml)

2009-01-08 Thread Kees Jan Koster
Dear Petr, any comment on this subject? The question is related to OpenSolaris package (*) where we have all files owned by root and tomcat is executed with dedicated user credentials. Currently tomcat-user.xml and conf directory is owned by tomcat user but it makes some noise in our

Re: connector restart / api

2009-01-13 Thread Kees Jan Koster
Dear Mike, What is the recommended way if any, of restarting the http Connector ? i.e. is there an api for achieving this? You asked before. I suggested you use JMX. Have you made any headway in that direction? -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org

Re: connector restart / api

2009-01-13 Thread Kees Jan Koster
Dear Mike, You mentioned JMX - would I be able to use JMX in such a way that it would allow me to restart the connector programatically upon a url request into my web app? I wrote some sample code that does just that, have a look at http://java-monitor.com/forum/showthread.php?t=169

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Kees Jan Koster
Dear Keith, It's not clear what you want to do (as opposed to what you don't want to do). Is your goal to use a new DB connection for every DB access your webapp makes, or do you want to do DB connection pooling inside your webapp, or ??? Not using connection pooling at all is a real

Re: Is it possible to delay HTTP port opening?

2009-01-18 Thread Kees Jan Koster
Dear Jesper, At server startup, is it possible to configure tomcat to not open it's http ports so early? By default the server starts to receive http requests quite long before initialization is complete. These requests are held open until the server is ready to respond, and then the

networkaddress.cache.ttl and networkaddress.cache.negative.ttl

2009-01-20 Thread Kees Jan Koster
Dear All, Do any of you guys tune networkaddress.cache.ttl or networkaddress.cache.negative.ttl? If so, what values do you use? -- Kees Jan http://www.kjkoster.org/ kjkos...@gmail.com 06-51838192 - To unsubscribe, e-mail:

Re: JMX Controlpanel Application

2009-01-21 Thread Kees Jan Koster
Dear Gerardus, I was just wondering if anyone can recommend a open source that one can use to build control panels based on jmx properties published by the jvm or your own application. We have monitoring software that can alert us when some jmx values exceeds a threshold but I would like to

Re: Facing “Javax.servlet.servletException: c annot connect to windows server”. error

2009-01-22 Thread Kees Jan Koster
Dear S.Prakash, I am using jrxml for preparing the reports in excel files. It is working fine in windows but if the same is implemented (server)MAC OS tomcat I am facing Javax.servlet.servletException: cannot connect to windows server – not enough. I am using Tomcat

Re: Facing “Javax.servlet.servletException: c annot connect to windows server”. error

2009-01-23 Thread Kees Jan Koster
Dear prakash.s, I had visited the link suggested by you, please let me know how to change the java property -Djava.awt.headless=true Is it just enough to type the command prompt? For tomcat, you can either edit catalina.sh and add it after the Java command, for example.

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-03 Thread Kees Jan Koster
Dear Steve, One additional restriction I have is a security bureaucracy from hell. As far as console access I have a two-hop connection. Is there no test system that you can use to reproduce this, under less insane restrictions? Have you considered hauling your behind to the data center

Re: dbcp pool freezing

2009-02-03 Thread Kees Jan Koster
Dear Eric, and see that all my threads are in the WAITING state from org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java:810) I don't believe I have any connection leaks in my code Belief is not a substitute for evidence... Your webapp is clearly not

Re: How to exclude some classes to being serialized in sharing session with clustered tomcats?

2009-02-10 Thread Kees Jan Koster
Dear Stanimir, How to exclude some classes to being serialized in sharing session with clustered tomcats? I`m using hibernate, spring, java mail, apache commons dbcp, pool ... and to serialize/deserialize sessions all the classes must implement Serializable (or Externalizable), and I think

Re: Hello

2009-02-12 Thread Kees Jan Koster
Dear Okey, Am using windows vista and i wish to know what version of apache tomcat to download. Any version you like. -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 Rule 1 for being in a hole: stop digging.

Re: deploying web application on remote server

2009-02-12 Thread Kees Jan Koster
Dear sneha, I have developed web application using netbeans , I wish to deploy on remote server . I have placed files under / webapps directory of remote server. Tomcat is unable to locate libraries . how do I make tomcat locate libraries which are under WEB-INF/lib folder Why don't

Re: Is there a configurable parameter in web.xml for....

2009-03-10 Thread Kees Jan Koster
Dear Paul, ... the time period that tomcat spends honouring current requests when the server is shutdown? We have a web app used for secure file transfers and occasionally we need to take it down, however some requests for downloads can take more than an hour as the system allows very

Re: Tomcat Shutdown

2009-03-10 Thread Kees Jan Koster
Dear Aleksandr, So how to ping to application so that tomcat is going to be shutdown? http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContextListener.html Register it in web.xml -- Kees Jan http://java-monitor.com/forum/ kjkos...@kjkoster.org 06-51838192 The secret of success

Re: 15 second for redeployment is to much

2009-04-19 Thread Kees Jan Koster
Dear Khlystov, 1. 5 second (using maven) compile source ( usually it is 1 or 2 files ) 2. 0 second copy *.class file into Tomcat/webapps Stop using Maven for simple compiles and write a small shell script that just calls javac with the webapp's WEB-INF/classes as output dir. 3. 5-7

Re: #include'ing property files into conf/catalina.properties

2009-04-26 Thread Kees Jan Koster
Dear uma_rk, We centralize configurations in /etc/conf and hence I would like to import property configuration files into ${CATALINA_BASE}/conf/catalina.properties using #include as in // conf/catalina.properties ... #include /etc/conf/mytomcat.properties ... Please let me know if

Re: Preventing OutOfMemoryError: Java heap space

2009-05-13 Thread Kees Jan Koster
Dear Todd, I'm not sure I can use session counting, as my session size is not consistent. I could try to estimate the size of each session, and keep a global counter, but that seems like a lot of work. JMX offers quite a bit of insight in what your GC is doing. You could implement

Re: Tomcat Memory Script

2009-06-16 Thread Kees Jan Koster
Dear Matt, I am not too familiar with jmap, jstack or jinfo. I could write a script that uses jmap to get the memory of the tomcat running and then store the necessary information in a log file. That is an option, or you could use a tool that does that for you, plus make nice graphs.

Re: JNDI DataSource Leaks

2009-08-07 Thread Kees Jan Koster
Dear Chris, I have to restart Tomcat regularly because it exhausted my MySQL connections. Show processlist confirms the problem. I use Hibernate. Do you? I'll dig deeper later when I have more time. Kees Jan On 7 aug 2009, at 16:53, Christopher Schultz ch...@christopherschultz.net

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Kees Jan Koster
Dear Mon Cab, Given the results below it looks like this is not a daylight savings time issue. In fact its extremely odd behavior. Both Tomcat and the OS have the correct time, and yet when Tomcat compiles the JSP, the java and class files in the work directory have a create / modified

Re: Tomcat writing the wrong timestamp on compiled JSP's

2009-08-14 Thread Kees Jan Koster
Dear Mon Cab, Yes. That fixed it. Thankyou Kees. Glad to help. For some reason, the issue was with my WinSCP client. When I edited a jsp and then looked at the jsp file timestamp on the remote machine with WinSCP it showed the timestamp as my the current time (local and remote

Re: Tomcat dies suddenly

2010-02-03 Thread Kees Jan Koster
Dear Carl, So this problem happens on one machine or on more than one? If it is limited to one machine, I would be inclined to run memtest86 on it to see if the RAM is good. Kees Jan On 4 feb 2010, at 02:07, Carl c...@etrak-plus.com wrote: Chris, Interesting idea. I tried over the

Re: Stopping Catalina From MBean Server

2010-03-12 Thread Kees Jan Koster
Dear Gerukan, Is anybody try to stop the catalina engine from jconsole. I have been using Tomcat 6.0.20, and trying to stop Catalina from jconsole. I click Catalina/Service/Catalina/Operations/stop on the MBean view. INFO messages are written to the console related with stopping operation

Re: Tomcat Shutdown suddenly / random

2010-04-17 Thread Kees Jan Koster
Dear All, I don't believe Tomcat has any System.exit calls in it, so you could grep your code looking for such calls. Note that findbugs can be used for that. It will issue a warning for code that calls System.exit(). -- Kees Jan http://java-monitor.com/ kjkos...@kjkoster.org 06-51838192

Re: Tomcat died on java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? message

2010-05-28 Thread Kees Jan Koster
Dear Leon, It'd be nice to see some speed comparisons between -client -server and -Xint options and not only -server vs -Xint. I did some benchmarks with these settings. I was actually exploring hyperthreading in P4 hardware when I found -server to be twice as fast for even simple programs.

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Kees Jan Koster
Dear Ziggy, I was looking at the above for the above information as i am working on a client tool that tries to find out this exact information. The tool i am using connects to Tomcat via JMX but i am not sure if i can get the same information via JMX. Can i access the Context class? or is

Re: How to detect down of tomcat.

2011-03-20 Thread Kees Jan Koster
Or you can install http://java-monitor.com It will send you an e-mail or SMS when Tomcat dies. Plus graphs for memory and file descriptors etc Kees Jan On 20 mrt. 2011, at 12:07, André Warnier a...@ice-sa.com wrote: Or write the script in perl. That way, it will be portable between

Re: What monitoring do you use/recommend?

2011-04-21 Thread Kees Jan Koster
Hi, Have a look at http://Java-monitor.com It will send mail or SMS when the tomcat dies. It will also make pretty graphs from the JMX data. And it is free. :) Kees Jan On 21 apr. 2011, at 17:25, Gautam R Singh (gautsing) gauts...@cisco.com wrote: Hi List, My team maintains a small

Re: Tomcat HTTPS Connector Stops working after an hour

2011-12-27 Thread Kees Jan Koster
On 27 dec. 2011, at 06:25, Saravanan L saravan...@te-soft.com wrote: Please find the server.xml attached. The real problem is I dont know where to look at. -There are no error in logs or the linux sys logs. - I cannot diagnose as the connector(443) does not even connect. I

Re: TC7 + AntCompiler problems with whitespace in pathname

2012-01-17 Thread Kees Jan Koster
Dear all, Now about whether this is a bug in Tomcat or its documentation : I am fairly sure that not long ago, I saw a strong warning somewhere in the on-line Tomcat documentation, about not using spaces in pathnames somewhere, as it was not supported by some component. Perhaps the Tomcat

Re: [OT] TC7 + AntCompiler problems with whitespace in pathname

2012-01-17 Thread Kees Jan Koster
On 17 jan. 2012, at 11:11, André Warnier a...@ice-sa.com wrote: Kees Jan Koster wrote: Dear all, Now about whether this is a bug in Tomcat or its documentation : I am fairly sure that not long ago, I saw a strong warning somewhere in the on-line Tomcat documentation, about not using spaces

Re: [OT] Inspecting JMX

2012-01-26 Thread Kees Jan Koster
Dear Chris, Should I just give up and use JmxRemoteLifecycleListener? Yes. You really aren't get to get anywhere on EC2 without it. I figured since I was using localhost everything would stay there anyway. I'll give JmxRemoteLifecycleListener a chance. Or you could write a small piece

connection reset errors

2012-05-22 Thread Kees Jan Koster
Dear Tomcat community, I am trying to resolve the problem where some client code in Java frequently gets the following error in the logs: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at

Re: connection reset errors

2012-05-22 Thread Kees Jan Koster
Dear Jose, 2012/5/22 Kees Jan Koster kjkos...@gmail.com: Dear Tomcat community, I am trying to resolve the problem where some client code in Java frequently gets the following error in the logs: java.net.SocketException: Connection reset at java.net.SocketInputStream.read

Re: connection reset errors

2012-05-22 Thread Kees Jan Koster
Dear Jose, Yes I am. In finally{} block. Here is the client code: Calling the disconnect() method of HttpURLConnection may close the underlying socket if a persistent connection is otherwise idle at that time Try don't call it, test it and tell us :-)

Re: connection reset errors

2012-05-22 Thread Kees Jan Koster
Dear André, Assuming that your client is really connecting to that HTTP connector on port 8080 mentioned above.. Yes, it has a forwarded port 80 (using FreeBSD ipfw) that also points to 8080, and there is an Apache with mod_proxy_http that hooks into 8081. My tests are on the vanilla port,

Re: connection reset errors

2012-05-26 Thread Kees Jan Koster
Dear André, Took me a while to answer, because I wanted to get more precise readings. Assuming that your client is really connecting to that HTTP connector on port 8080 mentioned above.. Yes, it has a forwarded port 80 (using FreeBSD ipfw) that also points to 8080, and there is an Apache

Connection reset by peer in org.apache.tomcat.util.net.NioEndpoint setSocketOptions

2012-06-10 Thread Kees Jan Koster
Dear All, I get these errors in the logs quite frequently. About 1500 times every day. The application works nicely, strangely enough. What is happening here? How can I resolve these error messages? Should I worry? Jun 10, 2012 4:43:17 PM org.apache.tomcat.util.net.NioEndpoint

[solved] Re: connection reset errors

2012-06-10 Thread Kees Jan Koster
A big thank you for all that contributed to this thread and helped me understand the problem. Kees Jan On 22 May 2012, at 14:45, André Warnier wrote: Kees Jan Koster wrote: Dear André, Assuming that your client is really connecting to that HTTP connector on port 8080 mentioned above.. Yes

java.net.SocketException: Connection reset by peer in setSocketOptions()

2013-08-03 Thread Kees Jan Koster
Dear All, I have an exception that is littering my catalina.out. I see about 7000 of these on a normal day (server handles about 25 requests per second). It is this precise stack trace always. I have some other exceptions, but this one is the main headache I have today. Tomcat 7.0.30 openjdk

  1   2   >