How to use javet in multi-threaded environment with heavy load? #234
Unanswered
Lookout-ent
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a script, in which i need to invoke a function with different input to function each time. i want to use javet to create v8runtime environment in java to invoke the javascript function and i need to do this in multi-threaded environment and for a longer period of time , basically load is very high.
what is the best way to achieve this ?
Note: 1) I tried creating a new runtime environment for every thread, which results in memory spike and basically application is crashing
2) I created a single runtime environment and used it for every threads. In my junit for 10-20 threads, i didn't see it crashing. But in my application, it's crashing. Which could be because of memory spike.
I'm very new to using javet.Please guide me through this.
Beta Was this translation helpful? Give feedback.
All reactions