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
'status': {'message': 'The Gremlin statement that was submitted exceeds the maximum compilation size allowed by the JVM, please split it into multiple smaller statements ...}
'status': {'message': 'The Gremlin statement that was submitted exceeds the maximum compilation size allowed by the JVM, please split it into multiple smaller statements ...}
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:
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
Jump to solution
2 Replies
Solution
Florian Hockmann
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
rpuga
rpuga5mo ago
I see... unfortunately, it seems that this is a hard constraint. Thanks.
Want results from more Discord servers?
Add your server