Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Xmx not passed to script JVM #4922

Open
skirge opened this issue Sep 13, 2024 · 0 comments
Open

[Bug] Xmx not passed to script JVM #4922

skirge opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@skirge
Copy link

skirge commented Sep 13, 2024

Describe the bug

-J-Xmx flag is not passed to JVM which is running script

To Reproduce
Steps to reproduce the behavior:

  1. invoke joern with -J-Xmx24G --script somescript.sc
  2. run ps and notice that java process running replpp.scripting.NonForkingScriptRunner is missing -Xmx flag provided on command line

I think that ScriptRunning.exec is not passing additional JVM command line arguments to created java process.
As a result analysis crashes with OutOfMemory error despite providing flag on command line to increase heap to maximum.

Expected behavior
Xmx flag should be passed to jvm running the script

@skirge skirge added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant