I have a java GAE web app with datanucleus as the JPA provider. When deploying locally on my machine - the deployment hangs (takes minutes). Looking at the task manager I have a javac process running. Any idea what is going wrong?
-
i get this a lot too. it ends up just coming good by cancelling and rollback and try again. some times it even takes a few goes. i have suspecions that the app isnt starting properly (and sometimes this is founded [check your logs]) but other times it just takes forever for some reason. – Steven Jan 31 '11 at 22:43
-
2What do you mean by "deploying locally"? You're either running locally, or deploying it - not both. – Nick Johnson Feb 01 '11 at 02:52
-
Can you post your web.xml and appengine-web.xml? – Abduliam Rehmanius Mar 07 '11 at 19:12
-
I'd guess that JPA is innocent, just that that Google was a bit overloaded. Follow @Steven's advice. Is this still a problem? – Thilo Mar 10 '11 at 07:32
-
I agree with @Thilo, I don't know what in JPA could be causing javac to run, but GWT most certainly would. – Andrew Wynham Mar 10 '11 at 23:58
-
Which compiler version does it use ? This kind of javac hanging issues reminds me of 1.4 or sometimes 1.5 with the compiler hanging when the VM couldn't process the huge number of nodes. – Gepsens May 10 '11 at 08:28
4 Answers
Agreed. Its the problem with GAE as it takes a 6permutation Compilation only after which the application would be deployed and shown on the browser. I feel its the problem only with GAE and not JPA. I have developed a similar app and if you feel its because of JPA, you can check the corresponding database admin to see how many threads are being opened for the user. If you seem to find some aren't Garbage collected, check your code. Else you can use ConnectionPooling mechanism (to speedup db retrieval using ORM).....

- 1,902
- 3
- 22
- 30
The answer depends on several parameters
- How you deploy, are you using eclipse or command line?
- GAE version (and GAE/GWT eclipse plugin version)
- Windows or Linux?
In any case, a Thread Dump can help seeing which non daemon threads are stuck.
For command line deployment in Windows - press CtrlBreak after it hangs to get the thread dump
In Eclipse, if there is a way to deploy in debug mode, look at the debug view stack for the same info
See this answer as well: How to Force Thread Dump in Eclipse?

- 1
- 1

- 44,555
- 61
- 184
- 276
This thing depend on which platform u r using
- Windows
- linux
- mac os x
you can check what is going on by checksignal
sending a signal
Usage:
SendSignal <pid>
<pid> - send ctrl-break to process <pid> (hex ok)
You can get the source via anonymous CVS at
cvs -d :pserver:anon@www.latenighthacking.com:/code-cvsroot co 2003/SendSignal

- 1,377
- 3
- 13
- 31
I have recently deployed my simple application in google app engine via eclipse. It failed to deploy couple of times. after sometime, It deploy successfully. I was able to access the application. if it hangs, stop the deployment process and redeply

- 101
- 2
- 7