[MAGNOLIA-6662] Investigate JVM crash - and if faster DirectoryWatcher worsens it (Timebox) Created: 12/May/16  Updated: 23/May/16  Resolved: 19/May/16

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.4.6
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Jaroslav Simak
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive scripts.zip    
Issue Links:
Relates
relates to MAGNOLIA-6671 Unexpected exception log statements w... Closed
dependency
is depended upon by MAGNOLIA-6623 Speed up DirectoryWatcher on OSX in d... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Sprint: Kromeriz 44
Story Points: 2

 Description   

It would be great to speed up the directory watcher on OSX for the reasons listed in MAGNOLIA-6623.

Determine if a speedup increases risk of JVM crash.
And in general try to determine reason for JVM crash.



 Comments   
Comment by Christopher Zimmermann [ 12/May/16 ]

Its possible that the JVM crash could be stimulated by accessing a page via browser which uses the definitions that have just been updated.

Comment by Christopher Zimmermann [ 17/May/16 ]

I have not experienced the core dump. It was reported by had as a comment on the linked ticket. Perhaps it would be good to ask in Hipchat for people that have experienced it and in what situations.

Comment by Jaroslav Simak [ 19/May/16 ]

Setup:

  • Intellij 2016
  • Java 8
  • faster DirectoryWatcher

I made 2 scripts:

  • one that requests page every second
  • second that changes .yaml definition of the component every two seconds
    I ran those scripts for about two hours and no JVM crash occurred - only thing i found during tests: MAGNOLIA-6671
Comment by Christopher Zimmermann [ 19/May/16 ]

You mention IntelliJ. Did you test both scenarios?
1. Yaml files on classpath.
2. Yaml files on filessystem / light module

Comment by Jaroslav Simak [ 19/May/16 ]

I tested 2nd scenario.

Comment by Jaroslav Simak [ 19/May/16 ]

Attached those 2 scripts i mentioned
just update path & url in them and run them in terminal: python scriptName.py

Generated at Mon Feb 12 04:16:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.