CPU load too high for some code

Issue #131 resolved
zhoukang created an issue

after my server run for some days,cpu load get very high number QQ20161103-1@2x.png

this is some code i dumped by thread id of jstack QQ20161103-2@2x.png QQ20161103-3@2x.png QQ20161103-4@2x.png QQ20161103-5@2x.png

Comments (3)

  1. Axel Kramer repo owner

    With setting

    Config.JAS_NO_THREADS = false
    

    and commit 2e014a2 you can now wrap your evaluation to timeout if necessary. This evaluation times out after 60 seconds:

    TimeConstrained(<expression to eval>, 60)
    
  2. Log in to comment