Gremlin statement exceeds the maximum compilation size
Hi all, I'm trying to do some script-based bulk writes to a JanusGraph server, but I get the following error message
I have set
maxContentLength: 524288
in the server .yaml
file to allow my client to sbmit larger scripts, because I found a significant performance improvement when submitting a larger set of queries at once. But now I'm hitting the JVM limit for compilation size, which I'd like to increase, if possible.
Is there a way to increase the JVM limit?
Thanks!Solution:Jump to solution
This error message means that the JVM internally threw a
Method too large
error. At least from a quick search, it looks like this is a hard limit which can be configured.
That's at least what I got from this Stack Overflow question: https://stackoverflow.com/questions/3192896/how-to-circumvent-the-method-too-large-error-in-java-compilation...Stack Overflow
How to circumvent the "Method too large" error in Java Compilation?
I have a parser written in bigloo scheme functional language which I need to compile into a java class. The whole of the parser is written as a single function. Unfortunately this is causing the JVM
2 Replies
Solution
This error message means that the JVM internally threw a
Method too large
error. At least from a quick search, it looks like this is a hard limit which can be configured.
That's at least what I got from this Stack Overflow question: https://stackoverflow.com/questions/3192896/how-to-circumvent-the-method-too-large-error-in-java-compilationStack Overflow
How to circumvent the "Method too large" error in Java Compilation?
I have a parser written in bigloo scheme functional language which I need to compile into a java class. The whole of the parser is written as a single function. Unfortunately this is causing the JVM
I see... unfortunately, it seems that this is a hard constraint. Thanks.