I've changed logging level to DEBUG. Here are my observations... I'm running in Wildfly 10 and my loader service is a transactional EJB method which should flush entities automatically. I am seeing the entities persisted. However, I only see more debugging output from Hibernate if I manually call entityManager.flush(), but nothing that indicates problems.
Also, debugging output ends just after my entity loader service completes. I'm still left with a 4 minute wait time before my app goes to the started state. During that time, I see no debugging output.
I tried switching to a redis data store. I see my entities get persisted in redis just fine, but the after-persistence wait time is over 5 minutes and I get a java.util.concurrent.TimeoutException. To see if it made a difference, I tried switching Lucene indexes to be in infinispan rather than file-based, but having some trouble with class loading.
My entity model is fairly complex with lots of associations, elementcollections of maps, etc. I'll try to disable some of these to see if I can spot a bottleneck. Any debugging tips you could give me would be appreciated.
|