Find large strings allocation during java debug session -


after analyzing heap dump found there 30mb strings allocated (single string of 30 mb).
there way set break point while debugging application can find code allocates these huge strings? since thousands of strings allocated during application run isn't possible putting break point on each string allocation. believe conditional break point slow well.
if possible want exam strings content understand origin of these allocation.
example may result of web service call called small amount of data in rare cases huge input (which cases want find).

i'd try conditional breakpoint, if meant leaving app running day or two. @ least can on else while running. , other solution take day or 2 implement anyway.

failing that, using aspectj add pointcut string constructors , use log message, throw exception etc. same conditional breakpoint should run more quickly.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -