The following forum message was posted by  at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4945301:

I also encountered a similar problem trying to get autocompletion going in PyDev
2.4.0 + Jython 2.5.2. My error was:

[code]java.lang.RuntimeException: Error connecting to python process (
C:\NotBackedUp\dev\apps\development_tools\jdk1.6.0_23\bin\javaw.exe
....\pycompletionserver.py 54525 54524)  - the process in still alive (killing
it now)-  the output of the process is: Std output:[/code]

Upon investigating it, I discovered that the spawn Jython interpretter process
was taking too long to run the pycompletionserver.py script so the PyDev process
was assuming it had stopped responding and was killing it before it could start.

I traced the root cause of the slow Jython startup to this issue discussed here
[url]http://geek.starbean.net/?p=347[/url]. Basically the JVM (java1.6.0_23)
was hanging while trying to create a temporary file because the SecureRandom
number generator used for generating temp file names relies on a SeedGenerator
class which builds a system entropy from the files in my computer's temp 
directory
(amongst other things). My temp directory (pointed to by java.io.tmpdir) had
16,000+ files, and generating a fully directory was taking more than a minute.

Anyhow, jumping to the obvious solution, I just cleaned out my temp directory
and Jython's startup time improved significantly and that allowed
the pycompletionserer.py script to startup within a period of time acceptable
to the PyDev plugin. Hope this helps someone.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to