Raghuram Vadapalli wrote:I am using a python library which makes use of a jar file. During runtime, it says memory is insufficient for JVM and to allocate more memory to it. I found that this can be easily done when launching using command line by passing -Xmx argument. But as you can see, my case is different. I need to somehow set the JVM memory before executing my python script.
Stick the command (with the extra arguments) in another script would be my suggestion.
However, before you do that you might want to investigate
why your Python script uses so much memory. Maybe it's just a "Python thing", but the defaults are usually fine for most Java programs - in fact, I can't remember the last time I had to change them.
Winston