Saturday, April 11, 2009

The Java environment used for the Google App Engine

This is the environment used by the Google App Engine for Java:

java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
line.separator=\n
java.class.version=50.0
java.util.logging.config.file=WEB-INF/logging.properties
java.specification.name=Java Platform API Specification
java.vendor.url=http://java.sun.com/
java.vm.version=1.6.0_13
os.name=Linux
java.version=1.6.0_13
java.vm.specification.version=1.0
user.dir=/base/data/home/apps/[your-app-id]/[random-id]
java.specification.vendor=Sun Microsystems Inc.
java.vm.specification.name=Java Virtual Machine Specification
java.vm.vendor=Sun Microsystems Inc.
file.separator=/
path.separator=:
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.name=Java HotSpot(TM) Client VM
file.encoding=ANSI_X3.4-1968

Seems like GAE/Java is running Sun's Java 1.6.0.13 under Linux.
All according to System.getProperties().

So what about number of available processors and memory?

Runtime.getRuntime().availableProcessors()=1337 ("elite" joke)
# "the maximum number of processors available to the virtual
# machine; never smaller than one"

Runtime.getRuntime().freeMemory()=6293011 (6 MB)
# "an approximation to the total amount of memory currently
# available for future allocated objects, measured in bytes"

Runtime.getRuntime().maxMemory()=104857600 (105 MB)
# "the maximum amount of memory that the virtual machine will
# attempt to use, measured in bytes"

Runtime.getRuntime().totalMemory()=104857600 (105 MB)
# "the total amount of memory currently available for current
# and future objects, measured in bytes"

2 comments:

  1. I had no trouble navigating through all the tabs as well as related info. The site ended up being truly simple to access. Intraday Nifty Future Tips

    ReplyDelete
  2. Excellent post i have to state as well as many thanks for that info. Training happens to be a sticky topic. Nevertheless, continues to be one of the top subjects in our period. We value your own publish as well as anticipate much more. All the best, top essay writing service provides writing help for those who seek help from them.

    ReplyDelete