1 reputation
bio website
location
age
visits member for 3 years, 1 month
seen Dec 16 '11 at 15:28

Nov
22
comment Tomcat performing terribly for no apparent reason
This very application can handle hundreds of concurrent users on another server, so the fact that my server can't handle even 5-10 can't come down to lack of multithreading, because even 1 cpu should be able to easily handle 5 users.
Nov
22
comment Tomcat performing terribly for no apparent reason
The app uses dbcp-commons 1.4. This very application works for my friend, he has a localhost database though. But what could hinder the application from starting more connections? It seems to have too few, and the ones it has takes ages to complete, but looking at the databases stats it has never taken more than 20ms to complete an operation.
Nov
22
comment Tomcat performing terribly for no apparent reason
Both the server and database is both hosted by Amazon in the same data center, so bandwidth/network latency shouldn't be an issue. Looking at the profiler results: PoolingDataSource.getConnection() - 0ms players - SELECT - 3ms Uninstrumented time - 10sec+ PoolingDataSource.getConnection() - 0ms friends - SELECT - 1ms
Nov
22
comment Tomcat performing terribly for no apparent reason
I ran a profiler, and it seems like 99% of the waiting time seems to be database calls. The database has never had a write/read throughput of more than 5kb/s but it only has a few connections on average, never had more than 10 or so. This seems to be the bottleneck, number of connections between the app and the db.
Nov
22
comment Tomcat performing terribly for no apparent reason
I've tried increasing the heap, it's at 4500mb now. 7gb RAM. Made no difference
Nov
20
asked Tomcat performing terribly for no apparent reason