Graaljs Memory Management

22 views
Skip to first unread message

Aryan Gupta

unread,
Aug 21, 2023, 5:51:24 AM8/21/23
to ZAP Developer Group
Hi everyone. I wanted to ask if ZAP hinders javascript's memory management when running Graaljs Scripts?

thc...@gmail.com

unread,
Aug 21, 2023, 5:57:02 AM8/21/23
to zaproxy...@googlegroups.com
Hi.

Can you be more specific with hinders?

Best regards.

Aryan Gupta

unread,
Aug 21, 2023, 7:00:12 AM8/21/23
to ZAP Developer Group

The scripts written in Graaljs in ZAP sometimes don't work as expected. This could be due to the memory management of the Graaljs. So I wanted to ask are the script purely run using the Graaljs engine or ZAP acts as a middleware and could also be responsible for the same.

thc...@gmail.com

unread,
Aug 21, 2023, 7:31:18 AM8/21/23
to zaproxy...@googlegroups.com
What's not working as expected? The more details about the problem the
better.

Not sure if it helps but the cached scripts are recreated if you edit
them and the state they had is lost, that's not something particular to
the GraalVM JavaScript engine though. If the script is not cached it
will always have a new state each time it is executed (e.g. standalone).

Best regards.
Reply all
Reply to author
Forward
0 new messages