Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2014-08-20 Thread S Ahmed
, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 5/31/12 9:33 AM, S Ahmed wrote: It would be easier if all databases were hosted by a single instance of MySQL -- then you could use Tomcat-pool's feature of being able to provide

understanding jdbc pool

2014-03-05 Thread S Ahmed
Hi, With jdbc pool, is each socket connection in the pool handled by a separate thread? Say you have 20 connections set to be open at minimum, does that mean there will be 20 threads? If not, then there is a degree of serialization then right?

Re: jdbc connection debugging, tips?

2012-11-13 Thread S Ahmed
and password (just in case it is reading from the wrong file somehow??). On Tue, Nov 13, 2012 at 8:18 AM, Daniel Mikusa dmik...@vmware.com wrote: On Nov 12, 2012, at 10:55 PM, S Ahmed wrote: I can't seem to connect to my mysql database from my java code, but I can do it via terminal using

Re: jdbc connection debugging, tips?

2012-11-13 Thread S Ahmed
I'll report back tonight, thanks again! On Tue, Nov 13, 2012 at 11:08 AM, Daniel Mikusa dmik...@vmware.com wrote: On Nov 13, 2012, at 9:55 AM, S Ahmed wrote: Dan, Thanks for your help. From the terminal I was very explicit, I did this: mysql --host localhost --port 3306 --user

Re: jdbc connection debugging, tips?

2012-11-13 Thread S Ahmed
-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts ubuntu:~$ ubuntu:~$ cat /etc/issue Ubuntu 11.04 \n \l On Tue, Nov 13, 2012 at 11:16 AM, S Ahmed sahmed1...@gmail.com wrote: I'll report back tonight, thanks again! On Tue, Nov 13, 2012 at 11:08 AM, Daniel Mikusa dmik

Re: jdbc connection debugging, tips?

2012-11-13 Thread S Ahmed
Ok it turns out it was bound to an private ip address on ec2, thanks Dan! On Tue, Nov 13, 2012 at 10:52 PM, S Ahmed sahmed1...@gmail.com wrote: ubuntu:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 58 Server version

Re: jdbc connection debugging, tips?

2012-11-12 Thread S Ahmed
This same setup works fine locally on my laptop..so it does work :) On Mon, Nov 12, 2012 at 10:55 PM, S Ahmed sahmed1...@gmail.com wrote: I can't seem to connect to my mysql database from my java code, but I can do it via terminal using the user and password that is in my spring context file

Re: tomcat jdbc

2012-10-23 Thread S Ahmed
15:37, S Ahmed wrote: I was thinking of using this: https://github.com/codahale/metrics Much easier to have this keep track of stats, and not having to rely on jconsole just to get in insight. Why is it easier to instrument Tomcat's code than to just use the JMX info that's already

Re: tomcat jdbc

2012-10-22 Thread S Ahmed
, at 2:51 PM, S Ahmed wrote: Hi, When using the jdbc connection pool library, would it be possible to somehow record the # of connections that are being used, when the # of connections in the pool are being saturated etc., or is that something that would have to be modified

Re: tomcat jdbc

2012-10-19 Thread S Ahmed
to monitor this. On Fri, Oct 19, 2012 at 8:53 AM, Mark Shifman mark.shif...@yale.edu wrote: On 10/18/2012 02:51 PM, S Ahmed wrote: Hi, When using the jdbc connection pool library, would it be possible to somehow record the # of connections that are being used, when the # of connections

Re: pushing updates to a running tomcat instance

2012-10-15 Thread S Ahmed
the service if am doing this via the command line? On Mon, Oct 15, 2012 at 12:45 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 S Ahmed, On 10/15/12 11:39 AM, S Ahmed wrote: So when I have my server setup with tomcat, I normally

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-31 Thread S Ahmed
It would be easier if all databases were hosted by a single instance of MySQL -- then you could use Tomcat-pool's feature of being able to provide credentials when obtaining connections from the pool -- and get the right database. That way, a much smaller number of connections could be maintained

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-30 Thread S Ahmed
at 10:07 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 5/29/12 9:29 AM, S Ahmed wrote: If my requirement for a hosted application is to give each customer a separate instance of mysql, I am curious how feasible

Re: jdbc pool properties

2012-04-06 Thread S Ahmed
I'm using tomcat 7, in a spring mvc application. The properties is in my spring-context.xml file. bean id=dataSource class=org.apache.tomcat.jdbc.pool.DataSource destroy-method=close property name=driverClassName value=com.mysql.jdbc.Driver/ property name=url

Re: jdbc pool properties

2012-04-05 Thread S Ahmed
Daniel, Your suggestion seems to have worked so far, thanks! testOnBorrow=true and validationQuery=SELECT 1 On Wed, Apr 4, 2012 at 8:46 AM, Daniel Mikusa dmik...@vmware.com wrote: - Original Message - My db connections seem to be lost after an extended period of inactivity

Re: tomcat jdbc pool

2012-03-25 Thread S Ahmed
call .get(), is that possible? On Sun, Mar 25, 2012 at 6:41 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/3/26 S Ahmed sahmed1...@gmail.com: Is the jdbc pool somehow married to tomcat or can I use it with other containers potentially? ( 1. You certainly can use it with other

Re: upgrading tomcat when installed via apt-get

2012-01-27 Thread S Ahmed
, Mark Thomas ma...@apache.org wrote: On 27/01/2012 21:41, S Ahmed wrote: If I need to upgrade an existing live application that is running off a tomcat install that was installed via apt-get (ubuntu), how would I go about updating tomcat? Don't know. That would be a question for an Ubuntu

running separate isolated jvm's for each web app

2012-01-16 Thread S Ahmed
If my tomcat has 2 web applications running on it, how do I create different jvm pools to keep the apps isolated?

Re: running separate isolated jvm's for each web app

2012-01-16 Thread S Ahmed
! -Original Message- From: S Ahmed [mailto:sahmed1...@gmail.com] Sent: Monday, January 16, 2012 8:14 PM To: Tomcat Users List Subject: running separate isolated jvm's for each web app If my tomcat has 2 web applications running on it, how do I create different jvm pools to keep

Re: clarification on how data is streamed and handled by tomcat

2012-01-04 Thread S Ahmed
, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/1/4 S Ahmed sahmed1...@gmail.com: Say I have a simple servlet or spring mvc application running on tomcat. Tomcat is running as a webserver on port 80. A client makes a http POST request to my page www.example.com/submit If the client

Re: clarification on how data is streamed and handled by tomcat

2012-01-04 Thread S Ahmed
usage limites, and it would be great if I don't have to bring in the entire request header + body if I can get away with it. On Wed, Jan 4, 2012 at 1:58 PM, André Warnier a...@ice-sa.com wrote: S Ahmed wrote: Tomcat 6 Spring MVC, where my controllers method has both httpservletrequest

live redeploys and memory leaks

2011-12-30 Thread S Ahmed
If I have a running application, and I redeploy, is it possible to keep the server live or does it have to shut-down and re-load? Any gotchas with doing this on a busy server? Also, I have been reading that if you don't probably clean things up in a web app, there is a strong possibility that

how can I figure out if tomcat is blocking and needs more threads? production tomcat monitoring tips.

2011-12-28 Thread S Ahmed
While benchmarking, I want to know if/when tomcat requires more threads (maxThreads). How can I figure this out? i.e. I start benchmarking tomcat to see how it reacts to a high-traffic spike, I want to make sure that tomcat isn't hitting the maxThreads when my server has the ability resource

using htop, i see many tomcat processes?

2011-12-23 Thread S Ahmed
In my catalina.sh and set CATALINA_OPT, and I have Xmx around 2GB of ram. When I run htop, I see many instances of the tomcat process. I'm on a quad core server (xeon 3450), and I am seeing more than 15 tomcat processes, and one of the columns shows how the process was started with the java

where to put static files?

2011-11-20 Thread S Ahmed
I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} I know when I go in production I will have nginx map to this folder to serve the static files, but I just want to know

multiple instances on a server

2010-08-27 Thread S Ahmed
Hi, If you have a server with 15 GB of ram (or any large number for arguments sake), does it ever make sense to run multiple instances of tomcat on the same server? (serving http requests for the same web application) Or can a single instance utilize all the server resources just fine