http://groovyconsole.appspot.com/Try executing the following code to get some information about the GAE/J environment:
def p = System.getProperties()
p.keySet().each { println "${it}=${p[it]}" }
def r = Runtime.getRuntime()
println "processors=${r.availableProcessors()}"
println "freeMemory=${r.freeMemory()}"
println "maxMemory=${r.maxMemory()}"
println "totalMemory=${r.totalMemory()}"
2 comments:
I've got processors=1337 !
:-)
It appears as if availableProcessors() on the GAE/J is hard-coded to return 1337. See this post.
Post a Comment