Skip to main content



      Home
Home » Newcomers » Newcomers » TPTP profile files too large
TPTP profile files too large [message #257828] Sat, 07 June 2008 17:47 Go to next message
Eclipse UserFriend
Originally posted by: theodore.larsonfreeman.boeing.com

I'm using TPTP 4.4.1 and Eclipse 3.3.2 to profile a JBOSS application. The
application is running on Windows Server 2003 with Java 1.5.0_11. I'm
using the Agent Controller in standalone mode on the server. After just a
few minutes, the profile file that is generated is typically more than 500
MB in size. Eclipse tends to crash when importing these files. I want to
profile applications for much longer time periods, so this file size is
not going to be usable.

I am using a profile file and a filter file. I can verify that the classes
I exclude in the filter file do not appear in the trace file, and the
settings in the profile file appear to be working. I have tried various
combinations of profile settings, but unless I turn tracing off altogether
the trace files are unmanageably large.

Here is an example of a profile file that I have been using:

MONITOR_MODE = none
FILTERS = true
TRACK_GC_EVENT_TYPES = none
ID_STYLE = static
OPTIONS = true
TIMESTAMPS = true
METHOD_COUNTS = false
OBJ_ALLOC_IS_ARRAY = false
STACK_INFORMATION = normal
BOUNDARY_DEPTH = 1
TICKET = false
TRACE_MODE = full
TRACE_IDREFS = false

I keep adding classes to the exclusion list in the filter file, but the
file size continues to be too large. Here is an example of a filter file I
have used:

java* * EXCLUDE
sun* * EXCLUDE
sun.misc.* * EXCLUDE
com.sun.* * EXCLUDE
com.ibm.* * EXCLUDE
org.eclipse.* * EXCLUDE
org.apache.* * EXCLUDE
org.w3c.* * EXCLUDE
org.xml.* * EXCLUDE
javax.xml.parsers.* * EXCLUDE
org.jboss.* * EXCLUDE
org.tanukisoftware.* * EXCLUDE
gnu.getopt.* * EXCLUDE
EDU.oswego.* * EXCLUDE

Any suggestions about how to reduce the size of the profile files would be
greatly appreciated. Thank you,

Ted Larson Freeman
Re: TPTP profile files too large [message #257833 is a reply to message #257828] Sat, 07 June 2008 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Ted,

It's probably better to ask on the TPTP newsgroup, which I've added to
the "to" list of the reply. Paul invariably seems to answer all the
questions there. You might want to increase the heap size in your
eclipse.ini file when dealing with such big trace files.


Ted Larson Freeman wrote:
> I'm using TPTP 4.4.1 and Eclipse 3.3.2 to profile a JBOSS application.
> The application is running on Windows Server 2003 with Java 1.5.0_11.
> I'm using the Agent Controller in standalone mode on the server. After
> just a few minutes, the profile file that is generated is typically
> more than 500 MB in size. Eclipse tends to crash when importing these
> files. I want to profile applications for much longer time periods, so
> this file size is not going to be usable.
> I am using a profile file and a filter file. I can verify that the
> classes I exclude in the filter file do not appear in the trace file,
> and the settings in the profile file appear to be working. I have
> tried various combinations of profile settings, but unless I turn
> tracing off altogether the trace files are unmanageably large.
> Here is an example of a profile file that I have been using:
>
> MONITOR_MODE = none
> FILTERS = true
> TRACK_GC_EVENT_TYPES = none
> ID_STYLE = static
> OPTIONS = true
> TIMESTAMPS = true
> METHOD_COUNTS = false
> OBJ_ALLOC_IS_ARRAY = false
> STACK_INFORMATION = normal
> BOUNDARY_DEPTH = 1
> TICKET = false
> TRACE_MODE = full
> TRACE_IDREFS = false
>
> I keep adding classes to the exclusion list in the filter file, but
> the file size continues to be too large. Here is an example of a
> filter file I have used:
>
> java* * EXCLUDE
> sun* * EXCLUDE
> sun.misc.* * EXCLUDE
> com.sun.* * EXCLUDE
> com.ibm.* * EXCLUDE
> org.eclipse.* * EXCLUDE
> org.apache.* * EXCLUDE
> org.w3c.* * EXCLUDE
> org.xml.* * EXCLUDE
> javax.xml.parsers.* * EXCLUDE
> org.jboss.* * EXCLUDE
> org.tanukisoftware.* * EXCLUDE
> gnu.getopt.* * EXCLUDE
> EDU.oswego.* * EXCLUDE
>
> Any suggestions about how to reduce the size of the profile files
> would be greatly appreciated. Thank you,
>
> Ted Larson Freeman
>
>
Re: TPTP profile files too large [message #258737 is a reply to message #257833] Tue, 17 June 2008 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Ted,

Here are some suggestions for you to consider:

1. For filters, try an "include list" approach as opposed to the
"exclude list" approach you are currently using.

For example, assuming all your application classes are defined under
package com.initech.*, use the following filter:

com.initech.* * INCLUDE
* * EXCLUDE

2. Start the profiler in "enabled" mode and then attach the workbench at
the point where your application starts working (i.e., skip the JBoss
initialization phases) or processes interesting requests. Then detach.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: TPTP profile files too large [message #259658 is a reply to message #258737] Mon, 30 June 2008 19:03 Go to previous message
Eclipse UserFriend
Originally posted by: theodore.larsonfreeman.boeing.com

Thanks, Asaf! That's a big help.

Ted


Asaf Yaffe wrote:

> Ted,

> Here are some suggestions for you to consider:

> 1. For filters, try an "include list" approach as opposed to the
> "exclude list" approach you are currently using.

> For example, assuming all your application classes are defined under
> package com.initech.*, use the following filter:

> com.initech.* * INCLUDE
> * * EXCLUDE

> 2. Start the profiler in "enabled" mode and then attach the workbench at
> the point where your application starts working (i.e., skip the JBoss
> initialization phases) or processes interesting requests. Then detach.

> HTH,
> Asaf
Previous Topic:Eclipse Not Really Saving File Changes
Next Topic:Can't define a Tomcat v6.0 Server
Goto Forum:
  


Current Time: Wed May 14 07:44:18 EDT 2025

Powered by FUDForum. Page generated in 0.27773 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top