Thanks for the reply. But it looks a little bit obviuse for me that when the server is getting more concurrent requests it should start slowing down but I just cann't anderstand what causes such a long time for transations to commit.
Is this an issue with MySQL? If so I will probably have to move to Oracle.
Is this an issue with Hibernate or SecondLevel Caches? If so I will probably have to move to another ORM or to plain JDBC.
Is this an issue with Jboss 5.1 EJB/JPA implementaion? If so I will have to move to another server.
I'm sure that it's not an option when my application starts to respond in 20-30s to requests when there are ~150 concurrent requests.
P.S. I guess that I will finally find an answer/solution which sutisfy me, but I just wonder if someone has already faced and solved such a problem before.
Anyway that you for the responce. I do apprecite when someone is trying to help. That is what the cumminity exists for.
Something you can try is to store all your data in an in-memory database and see how the system performs. This would eliminate the overhead of disk access from the measurements.
I suggest to you to gather data using a profiling tool. It's not more than a day's worth of work (maybe even hours) to find out the hotspots in the code.
Thank you for your responce. I was actually going to use something like JProfiler in order to find out the hotspots. I don't think that an in-memory database could help me because it won't match my requirements anyway, but sill if the issue is inside MySQL I could move to Oracle DB.
I actually don't believe that the problem is in disk access, I sould better bet on some kind of locks somewhere.
P.S. I'm also going to play with flush method and decrasing sizes of transactions in order to get rid of this issue. Let's see if it helps.
Regards and Thanks again,
Several performance issues were identified in JBoss Application Server 5.1 and subsequently fixed in Enterprise Application Platform 5.1. These included issues with the transaction manager itself.
You can download a trial version of EAP 5.1 from http://www.jboss.com/downloads/.
Please let me know if that solves your issue.
Thanks Carlo. I tried EAP 5.1 but it worked almost the same. I also tried to make my transactions smaller, to use flush method of entity manager, to use another isolation level in mysql-ds.xml etc. But it worked the same on high load so that I suppose that the reason weather in jboss/ hibernate or in MySQL. I'm gonna try JProfiler soon and also I will probably try to move to Oracle DB.
So thanks everyone again. I will post here the results as soon as they are available and may be we will continue with this.