java - Runtime heap analysis; when is a String initialized that matches a pattern -



java - Runtime heap analysis; when is a String initialized that matches a pattern -

i have java programme @ point creates string matched "schema.sql". want find in source code happens. searching "schema.sql" on source code not yield location. instead programme must create string @ runtime. don't know where. happens in library on project. how can find programme creates string?

can watch heap @ runtime somehow string matched "schema.sql"? looked @ things visualvm looks analyzes heap dumps, not running state of heap. there must way this; ideas?

you can jprofiler next steps:

1) start allocation recording @ startup configuring appropriate allocation recording profile in session startup dialog.

2) take heap snapshot after think string has been created

3) double-click on java.lang.string row in classes view of heap walker create new object set strings

4) switch "outgoing references view"

5) search string choosing "apply filter->by restricting selected value" , entering string value

6) switch allocations view , check out stack trace

disclaimer: company develops jprofiler.

java profiling heap-memory heap-dump

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -