R
romanlutsk
Dear all,
We run a tomcat/mysql web portal that generates a lot of queries to
mysql server.
Recently after letting more users use the portal, we've started
experiencing freezing of the web server (java or mysql processes take
up to 99% of cpu).
This problem has stopped after increasing a number of mysql connections
from 100 to 400 and allocating 128 MB of memory to tomcat.
However, now mysql seems to have too many connections all the time. It
constantly shows around 300-350 connections. Also, when trying to
execute a larger SQL, it returns this error:
************
#1037 - Out of memory. Restart daemon and try again (needed 32768
bytes)
************
I've checked the application, the database connections and resultSets
are closed everywhere, so there shouldn't be any memory leak in the app
itself.
On the other side, tomcat seems to have a lot of unused sessions open,
over 150 sessions that are inactive for over 30 minutes.
We've tried to set worker.tc1.recycle_timeout=120 in
apache/conf/workers.properties, but it doesn't seem to help. Tomcat
shows the following:
OK - Session-Information for applications in context path /fhoportal
Sessions end after 30 minutes of inactivity
10 - <20 Minutes: 11 Sessions
30 - <40 Minutes: 105 Sessions
OK - Session-Information for applications in context path /uportal
Sessions end after 30 minutes of inactivity
10 - <20 Minutes: 1 Sessions
30 - <40 Minutes: 41 Sessions
Tomcat 4.0 is connected with apache through mode_jk. Tomcat/apache and
mysql run on the same server with 2 Xenon processors and 1 GB of RAM.
Mysql version is 4.0.18.
OS is SuSE 9.0 Enterprise edition
I wonder anyone could give any pointers on where to look for a
solution.
It looks like the mysql connections or tomcat sessions are not being
closed. However, the server runs for about 10 days now and the number
of mysql connections stays at around 360 all the time.
Is it not supposed to go up and down in real time, as the number of
users increase and decrease? We don't use any connection pooling.
Also, I wonder what exactly the tomcat sessions are? Are those the
sessions that users start from their browsers when they login into the
system? If yes, why are there so many inactive sessions?
Could this indicate a problem?
Thank you very much,
Roman Zhovtulya
We run a tomcat/mysql web portal that generates a lot of queries to
mysql server.
Recently after letting more users use the portal, we've started
experiencing freezing of the web server (java or mysql processes take
up to 99% of cpu).
This problem has stopped after increasing a number of mysql connections
from 100 to 400 and allocating 128 MB of memory to tomcat.
However, now mysql seems to have too many connections all the time. It
constantly shows around 300-350 connections. Also, when trying to
execute a larger SQL, it returns this error:
************
#1037 - Out of memory. Restart daemon and try again (needed 32768
bytes)
************
I've checked the application, the database connections and resultSets
are closed everywhere, so there shouldn't be any memory leak in the app
itself.
On the other side, tomcat seems to have a lot of unused sessions open,
over 150 sessions that are inactive for over 30 minutes.
We've tried to set worker.tc1.recycle_timeout=120 in
apache/conf/workers.properties, but it doesn't seem to help. Tomcat
shows the following:
OK - Session-Information for applications in context path /fhoportal
Sessions end after 30 minutes of inactivity
10 - <20 Minutes: 11 Sessions
30 - <40 Minutes: 105 Sessions
OK - Session-Information for applications in context path /uportal
Sessions end after 30 minutes of inactivity
10 - <20 Minutes: 1 Sessions
30 - <40 Minutes: 41 Sessions
Tomcat 4.0 is connected with apache through mode_jk. Tomcat/apache and
mysql run on the same server with 2 Xenon processors and 1 GB of RAM.
Mysql version is 4.0.18.
OS is SuSE 9.0 Enterprise edition
I wonder anyone could give any pointers on where to look for a
solution.
It looks like the mysql connections or tomcat sessions are not being
closed. However, the server runs for about 10 days now and the number
of mysql connections stays at around 360 all the time.
Is it not supposed to go up and down in real time, as the number of
users increase and decrease? We don't use any connection pooling.
Also, I wonder what exactly the tomcat sessions are? Are those the
sessions that users start from their browsers when they login into the
system? If yes, why are there so many inactive sessions?
Could this indicate a problem?
Thank you very much,
Roman Zhovtulya