bakunin95 / wavi

Web Application Viewer - generate class diagram for web application
Other
145 stars 23 forks source link

CALL_AND_RETRY_LAST Allocation failed - process out of memory #9

Open rsjandu opened 8 years ago

rsjandu commented 8 years ago

Hi, I was trying to create graph for a project.

After doing every thing(HTML and JS parsing ) following error appears.

Command used

C:>wavi --dot "C:\Downloads\xyz\xyz\abc" "C:\Downloads\xyz\" --max_old_space_size=4000000 --max_new_space_size=4000000

I have tried above command with 'size' 6000000 , As i have 8 gb on my system ,but to no avail. Any suggestions. ============================~ERROR~~===================================== generating graph (could take several minutes)...

<--- Last few GCs --->

5728694 ms: Mark-sweep 1354.7 (1458.0) -> 1354.6 (1458.0) MB, 976.5 / 3 ms [all ocation failure] [GC in old space requested]. 5729763 ms: Mark-sweep 1354.6 (1458.0) -> 1354.4 (1458.0) MB, 1069.1 / 3 ms [al location failure] [GC in old space requested]. 5730759 ms: Mark-sweep 1354.4 (1458.0) -> 1351.9 (1458.0) MB, 995.9 / 4 ms [las t resort gc]. 5731772 ms: Mark-sweep 1351.9 (1458.0) -> 1351.6 (1458.0) MB, 1013.8 / 4 ms [la st resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0000025F1BDB4639 1: InnerArrayMap(aka InnerArrayMap) [native array.js:~1001] [pc=0000013327C5 083F](this=0000025F1BD041B9 ,bk=000002AFD1551C01 <JS Function %28Share dFunctionInfo 00000114DCADF8E1%29>,bl=0000025F1BD041B9 ,o=000002AFD1552 019 <JS Array[37]>,v=37) 2: map [native array.js:~1022] [pc=0000013327CD303D] (this=000002AFD1552019 <JS Array[37]>,bk=000002AFD1551C01 <JS Function (S...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

bakunin95 commented 8 years ago

This look like a big project if it require that much memory.

I think the right solution would be to divide the task into folders.

For example:

wavi --dot C:\Downloads\xyz\xyz\abc\a C:\Downloads\xyz\a.dot wavi --dot C:\Downloads\xyz\xyz\abc\b C:\Downloads\xyz\b.dot wavi --dot C:\Downloads\xyz\xyz\abc\c C:\Downloads\xyz\c.dot

And avoid the folder containing scripts like : Jquery, Angular or any external npm modules etc.. those files take alot of time to process and doesnt add much in term of value.

Another solution is to copy your project to a temporary folder and remove those script manually.