Hi all,
We have a DB2 instance running on a virtual machine with Windows Server 2003 and 3.75GB of RAM.
Some time since 2010, we started to experience problems with DB2, which the entire instance would "hang" when certain SQL queries are run and the only way we could get it to recover is by restarting the machine. I'm not sure if any update was deployed at that time. The version we currently have is:
At first I suspected it was a result of poorly written queries but further look into the problems revealed that some of these queries that would cause the system to hang/query were rather simple and often a query would only be problematic for one database but fine for all others.
For example, our DB2 instance would stop responding if I run this query on one of our databases:
However it would take less than one second to finish this:
I also don't think it's the problem with our databases. This is because I have tried copying some of the databases to our development environment and was able to execute the queries with no problem there.
This is why I think the problem lies between the server we use or the DB2 instance - maybe something to do with memory; rather than queries or databases. Unfortunately IBM refused to help us with this issue because they no longer supported the product that we're using DB2 for.
I've tried a few things to fix the problems, none of these worked so far:
I've also tried looking into "db2 list applications show detail" or db2diag.log but couldn't see any obvious problem.
I will continue to look into the problem and if all else fail we might have to use a fresh new production server. If there's suggestions you have to what the cause of the problems might be or what I can try please let me know. Any help is appreciated!!! :)
Cheers,
Billy
We have a DB2 instance running on a virtual machine with Windows Server 2003 and 3.75GB of RAM.
Some time since 2010, we started to experience problems with DB2, which the entire instance would "hang" when certain SQL queries are run and the only way we could get it to recover is by restarting the machine. I'm not sure if any update was deployed at that time. The version we currently have is:
Code:
DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL09010" with level identifier "02010107". Informational tokens are "DB2 v9.1.0.356", "s060629", "NT32", and Fix Pack "0".
For example, our DB2 instance would stop responding if I run this query on one of our databases:
Code:
SELECT * FROM "TestCase" WHERE "Custom2" = 'something'
Code:
SELECT * FROM "TestCase"
This is why I think the problem lies between the server we use or the DB2 instance - maybe something to do with memory; rather than queries or databases. Unfortunately IBM refused to help us with this issue because they no longer supported the product that we're using DB2 for.
I've tried a few things to fix the problems, none of these worked so far:
- Increasing instance heap size (MON_HEAP_SZ)
- Update database application heap size (APP_CTL_HEAP_S Z)
- Turning off STMM (SELF_TUNING_ME M = OFF)
- Reducing the number of databases on the instance from 60 to 25 (maybe still too many?)
- ....and many more small attempts at turing
I've also tried looking into "db2 list applications show detail" or db2diag.log but couldn't see any obvious problem.
I will continue to look into the problem and if all else fail we might have to use a fresh new production server. If there's suggestions you have to what the cause of the problems might be or what I can try please let me know. Any help is appreciated!!! :)
Cheers,
Billy
Comment