memory leak?

User 870ab5b546

12-04-2009 19:55:18

I'm having some problems with runaway Java processes when Reactor is being run many times in sequence.  Do you know of any memory leaks in the code?  How can I help diagnose this problem?

ChemAxon e08c317633

14-04-2009 10:02:27

Which version are you using?


Zsolt

User 870ab5b546

14-04-2009 12:35:11

JChem 5.1.0.

ChemAxon e08c317633

17-04-2009 11:51:56

Bob, are you sure this issue came up with JChem 5.1? From JChem 5.2 Reactor, when used through react application, runs in parallel mode, and its memory consumption is much more higher, than in 5.1 (with "large" reaction and input molecules it is about 200 MB vs 20 MB).


Do you use react application, or your own code (please, attach)? If you use the Reactor API (chemaxon.reaction.Reactor) , then you should not notice any difference between 5.1 and 5.2, cause the concurrency is handled by an other class (chemaxon.reaction.ConcurrentReactorProcessor).


Zsolt


 

User 870ab5b546

17-04-2009 18:32:55

Yes, it came up in JChem 5.1.  I'm not sure it's related to Reactor, but that's my hunch.


We are using the Reactor API.  The code is way too long to attach.  A single workaround for Reactor's inexplicable ability to do stereospecific addition to alkenes accounts for 700 lines. 

ChemAxon e08c317633

20-04-2009 09:33:43

Bob, we haven't experienced any memory leak in Reactor's code. Could you attach a short code example, that can be used for reproducing this error?


Zsolt

User 870ab5b546

20-04-2009 12:22:33

If you haven't experienced it, then it's quite possible it's something else.  I'll let you know if the problem reoccurs.