Hprof dump files are not persisted.
They get temporarily created , then the binary hprof format is decoded into text and streamed to Splunk.
Then the temporary hprof dump file is deleted.
As to why you don't see data in Splunk , you are going to need to post some information to work off.
1) describe your environment
2) what setup steps have you performed
3) are there any error messages anywhere
4) what does your splunk agent configuration file look like
5) what other troubleshooting steps have you performed ? ie: can you see the data on the wire actually being sent to Splunk (using wireshark for example)
etc....
Hi,
1) Environment: J2EE web application with Tomcat server, JDK1.7 . Application is running from Eclipse.
2) SetUp Steps: Splunkagent Jar is started with the start of Tomcat server. TCP port is configured as Directed in this link( http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Monitornetworkports) in the splunk UI.
Splunk UI Data Input:
(i) TCP Port:5150
(i) Source Type: Manual -TCP raw
More Settings:
(i) SetHost: Custom Value: PCname
Index: Default
Splunkagent.properties file configuration (changes) :
agent.app.name=Tomcat
agent.app.instance=jdk1.7.0_65
splunk.transport.tcp.host=splunkhost
splunk.transport.tcp.port=5150
3) No error messages were observed
4) Splunk configuration file:
agent.app.name=Tomcat
agent.app.instance=jdk1.7.0_65
(i) splunk.transport.tcp.host=splunkhost
(i) splunk.transport.tcp.port=5150
trace.whitelist=com/vogella
trace.blacklist=com/sun,sun/,java/,javax/,com/splunk/javaagent/
5) No, i didn't perform any troubleshooting
Note: I may have gone wrong in configuring Splunk properties file and Splunk UI settings marked with (i) above
I want to see the Method level statistics for those that are whitelisted in the splunk configuration file.
Thanks,
Your original question mention HPROF metrics , however in the response above you are now mentioned you want to see method stats.
Is "splunkhost" your actual hostname of your Splunk host ?
Please post your full configuration file.
Hi,
yes, host name is splunkhost. ( should the "set host" be "splunkhost" in TCP Data-Input in Splunk UI)
Configuration file:
agent.app.name=Tomcat
agent.app.instance=jdk1.7.0_65
splunk.transport.impl=com.splunk.javaagent.transport.SplunkTCPTransport
splunk.transport.tcp.host=splunkhost
splunk.transport.tcp.port=5150
splunk.transport.tcp.maxQueueSize=5MB
splunk.transport.tcp.dropEventsOnQueueFull=false
trace.whitelist=com/vogella
trace.blacklist=com/sun,sun/,java/,javax/,com/splunk/javaagent/
trace.methodEntered=true
trace.methodExited=true
trace.classLoaded=true
trace.errors=true
trace.hprof=true
trace.hprof.tempfile=D:\344235\mydump.hprof
trace.hprof.frequency=10
trace.jmx=true
trace.jmx.configfiles=jmx
trace.jmx.default.frequency=20