开发者

Absurd size and quantity of byte[] while profiling

开发者 https://www.devze.com 2023-02-02 20:41 出处:网络
I have been having an out of memory problem with one of my webapps and fired up 开发者_C百科Eclipse\'s TPTP to find it. I was shocked to the that the biggest offender was byte[] with an ever increasin

I have been having an out of memory problem with one of my webapps and fired up 开发者_C百科Eclipse's TPTP to find it. I was shocked to the that the biggest offender was byte[] with an ever increasing number of instances and size. Is there any way to track down where that is coming from? For reference my software stack is Java 1.5, tomcat 5.5 and spring 2.5.


byte[] instances will be coming from network communications (transferring socket data through JNI), image processing (storing the data of BufferedImages), and any other non-native ByteBuffers you have. It'd be useful to know the type of application you have :) (edit: just noticed Tomcat and Spring. I'd go for network communications)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号