Re: Debugging my Connector/J based Tomcat Servlet

Niklas Saers <[email protected]> Sun, 12 Jul 2009 11:06:57 +0200
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
On Jul 11, 2009, at 10:47 AM, Ronald Klop wrote:
> Get the pid of the Tomcat process with jps. Tomcat is called  
> BootStrap in that list, because that is the name of the main-class  
> of Tomcat. Than run this command. Substitude the pid for <pid>.
> jstat -gc -h 10 -t <pid> 10s

Thank you very much for the tip, I'll be sure to use this. :-)

> So you have 1 connection which you share with all http requests. Are  
> you sure the Connection can be used mutli-threaded?

It has worked, but with leaking. I'll be following Christopher's  
suggestion and rewrite it to use multiple connections, that should  
hopefully get me at least a better starting point. :-)

Cheers

	Nik

-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]