I have weird behavior of inconsistent data returned from my DB when there are 150+ users connected to our Web-app.
My EJBs connect to MySQL through mostly Netbeans 7.0 generated code, customized a bit for re-usability. What happens is that every so often, a user receives (in the browser) data that is not what it should be. I.e. User is viewing the details of product A
, but part of the data (some one-to-many relationship data) belong to a different product. We don't have this issue when less users are logged-in. It seems problems start to raise at about 150 users.
The EntityManager
part of the code does only em.create(...)
, em.persist(...)
or em.merge(...)
. There is no refresh()
or flush()
. I disabled the shared cache. I have no load balancing.
What/Where could I look more?