java - Is there a jvm argument that causes the jvm to create an hprof file when the jvm starts up -


one of our testers keeps getting small hprof file created on windows environment when starts our application.

  • the hprof file showing on windows instance. other testers aren't seeing this
  • the hprof file appears every time starts it.
  • the hprof file small (45mb). there no outofmemoryerrors or useful in hprof file matter.
  • the jvm doesn't exit
  • the application works fine on installation after startup.

is there jvm argument can specified @ startup (in case, through environment variable) creates hprof file @ startup? know if specify cpu=samples create 1 on exit.

i'm reasonably convinced system setting. have no idea one. running oracle's jre 1.6_024 , jvm running part of startup of tomcat 7.

more information here set output.

microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation. rights reserved.  c:\users\administrator>set allusersprofile=c:\programdata appdata=c:\users\administrator\appdata\roaming classpath=.;c:\windows\java\lib\jtapi.jar;.;; commonprogramfiles=c:\program files\common files commonprogramfiles(x86)=c:\program files (x86)\common files commonprogramw6432=c:\program files\common files computername=rajserver comspec=c:\windows\system32\cmd.exe fp_no_host_check=no homedrive=c: homepath=\users\administrator java_home=c:\program files (x86)\java\jre localappdata=c:\users\administrator\appdata\local logonserver=\\rajserver number_of_processors=4 os=windows_nt path=c:\program files (x86)\company\app\resources;c:\program files (x 86)\company\app\resources;c:\python27\;c:\python27\scripts;c:\windows \system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell    \v1.0\;c:\program files (x86)\java\jdk1.6.0_24\bin;%appdata%\python    \scripts;c:\program files (x86)\nmap pathext=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;.py;.pyw processor_architecture=amd64 processor_identifier=intel64 family 6 model 23 stepping 10, genuineintel processor_level=6 processor_revision=170a programdata=c:\programdata programfiles=c:\program files programfiles(x86)=c:\program files (x86) programw6432=c:\program files prompt=$p$g psmodulepath=c:\windows\system32\windowspowershell\v1.0\modules\ public=c:\users\public sessionname=console systemdrive=c: systemroot=c:\windows temp=c:\users\admini~1\appdata\local\temp\1 tmp=c:\users\admini~1\appdata\local\temp\1 userdomain=rajserver username=administrator userprofile=c:\users\administrator windir=c:\windows 

here dump of system properties once application started tomcat.

prps awt.toolkit = sun.awt.windows.wtoolkit prps catalina.home = c:\program files (x86)\company\application\tomcat prps catalina.usenaming = true prps com.sun.jndi.ldap.connect.pool.protocol = plain ssl prps com.sun.jndi.ldap.connect.pool.timeout = 10000 prps file.encoding.pkg = sun.io prps file.encoding = utf-8 prps java.awt.graphicsenv = sun.awt.win32graphicsenvironment prps java.awt.printerjob = sun.awt.windows.wprinterjob prps java.class.path = c:\program files (x86)\company\application\tomcat\bin\bootstrap.jar;c:\program files (x86)\company\application\tomcat\bin\tomcat-juli.jar;c:\program files (x86)\company\application\tomcat\bin\tomcat-juli.jar;c:\program files (x86)\company\application\java\lib\tools.jar;c:\windows\java\lib\jtapi.jar;c:\windows\java\lib\jtracing.jar prps java.class.version = 50.0 prps java.endorsed.dirs = c:\program files (x86)\company\application\tomcat\endorsed prps java.ext.dirs = c:\program files (x86)\company\application\java\jre\lib\ext;c:\windows\sun\java\lib\ext prps java.home = c:\program files (x86)\company\application\java\jre prps java.io.tmpdir = c:\program files (x86)\company\application\tomcat\temp prps java.library.path = c:\program files (x86)\company\application\webapp\resources prps java.naming.factory.initial = org.apache.naming.java.javaurlcontextfactory prps java.naming.factory.url.pkgs = org.apache.naming prps java.runtime.name = java(tm) se runtime environment prps java.runtime.version = 1.6.0_27-b07 prps java.specification.name = java platform api specification prps java.specification.vendor = sun microsystems inc. prps java.specification.version = 1.6 prps java.vendor.url = http://java.sun.com/ prps java.version = 1.6.0_27 prps java.vm.info = mixed mode prps java.vm.name = java hotspot(tm) server vm prps java.vm.specification.name = java virtual machine specification prps java.vm.specification.vendor = sun microsystems inc. prps java.vm.specification.version = 1.0 prps java.vm.vendor = sun microsystems inc. prps java.vm.version = 20.2-b06 prps line.separator =  prps log4j.configuration = file:/c:\program files (x86)\company\application\webapp/web-inf/logconfiguration.properties prps os.arch = x86 prps os.name = windows server 2008 r2 prps os.version = 6.1 prps package.definition =     sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. prps path.separator = ; prps run_under_eclipse = false prps shared.loader =  prps sun.arch.data.model = 32 prps sun.boot.class.path = c:\program files (x86)\company\application\java\jre\lib\resources.jar;c:\program files (x86)\company\application\java\jre\lib\rt.jar;c:\program files (x86)\company\application\java\jre\lib\sunrsasign.jar;c:\program files (x86)\company\application\java\jre\lib\jsse.jar;c:\program files (x86)\company\application\java\jre\lib\jce.jar;c:\program files (x86)\company\application\java\jre\lib\charsets.jar;c:\program files (x86)\company\application\java\jre\lib\modu prps sun.boot.library.path = c:\program files (x86)\company\application\java\jre\bin prps sun.jnu.encoding = cp1252 prps sun.management.compiler = hotspot tiered compilers prps sun.net.client.defaultconnecttimeout = 15000 prps sun.net.client.defaultreadtimeout = 20000 prps sun.os.patch.level = service pack 1 prps tomcat.util.buf.stringcache.byte.enabled = true prps tomcat.util.scan.defaultjarscanner.jarstoskip = bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar, prps user.country = prps user.dir = c:\windows\system32 prps user.home = c:\ prps user.language = en prps user.name = rajserver$ prps user.timezone = america/chicago prps user.variant =  syskey commonprogramfiles = c:\program files (x86)\common files syskey commonprogramfiles(x86) = c:\program files (x86)\common files syskey commonprogramw6432 = c:\program files\common files syskey computername = rajserver syskey comspec = c:\windows\system32\cmd.exe syskey fp_no_host_check = no syskey java_home = c:\program files (x86)\java\jre syskey localappdata = c:\windows\system32\config\systemprofile\appdata\local syskey number_of_processors = 4 syskey os = windows_nt syskey path = c:\program files (x86)\company\application\resources;c:\python27\;c:\python27\scripts;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\java\jdk1.6.0_24\bin; syskey pathext = .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc;.py;.pyw syskey processor_architecture = x86 syskey processor_architew6432 = amd64 syskey processor_identifier = intel64 family 6 model 23 stepping 10, genuineintel syskey processor_level = 6 syskey processor_revision = 170a syskey programdata = c:\programdata syskey programfiles = c:\program files (x86) syskey programfiles(x86) = c:\program files (x86) syskey programw6432 = c:\program files syskey psmodulepath = c:\windows\system32\windowspowershell\v1.0\modules\ syskey public = c:\users\public syskey systemdrive = c: syskey systemroot = c:\windows syskey temp = c:\windows\temp syskey tmp = c:\windows\temp syskey userdomain = workgroup syskey username = rajserver$ syskey userprofile = c:\windows\system32\config\systemprofile syskey windir = c:\windows 

check out *java_tool_options* environmental variable, might contain like

java_tool_options="-agentlib:hprof" 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -