You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example that reproduces the problem uploaded to Github: N/A
Full description of the issue provided (see below)
Steps to Reproduce
Create new Grails Web Application
Reduce build.gradle memory usage to a reasonably small value -Xmx512m
Insert an async task into the default controller
Promise promise = task {
try {
//Insert High Memory Usage Task
} catch (Exception e) {
log.error("Exceptions does not occur here", e)
} finally {
//Code here does not process
}
}
promise.onError { Exceptione->
log.error("OOME exceptions should at least occur here, but do not", e)
}
Insert High Memory Usage Task in the above comment
I am using a JSONSluper to read a huge JSON file and then try to write it back out to a file.
File must be large enough to cause an Out Of Memory Exception (OOME) if run outside of the async task
Run grails run-app in your dev environment or go big and make a production environment and run the war file.
Execute the task in the controller
Wait for OOME, get coffee, watch movie, drink beer, concur that an OOME should occur
Expected Behaviour
An OOME Exception should occur and the task should stop processing
Actual Behaviour
The task runs indefinitely and my laptop gets hot enough to grill a hamburger
Environment Information
Operating System: Mac OS (Dev environment) - (Also Tested on CentOS 7 - Prod environment)
Grails Version: 5.2.5
JDK Version: Open JDK (Build 1.8.0_275-b01)
Container Version (If Applicable): Dev environment or Tomcat 9.0.71
Example Application
See simple instructions above to reproduce in any Grails application you currently have setup.
Github project is unnecessary
Thanks!
The text was updated successfully, but these errors were encountered:
Task List
Steps to Reproduce
Create new Grails Web Application
build.gradle
memory usage to a reasonably small value-Xmx512m
Insert an async task into the default controller
JSONSluper
to read a hugeJSON
file and then try to write it back out to a file.Run grails run-app in your dev environment or go big and make a production environment and run the war file.
Execute the task in the controller
Wait for OOME, get coffee, watch movie, drink beer, concur that an OOME should occur
Expected Behaviour
An OOME Exception should occur and the task should stop processing
Actual Behaviour
The task runs indefinitely and my laptop gets hot enough to grill a hamburger
Environment Information
Example Application
Thanks!
The text was updated successfully, but these errors were encountered: