前段时间说到现在的项目里在用JFreeChart。昨天晚上走之前没把客户端关掉,今天中午到公司发现程序已经崩了,狂抛OutOfMemoryError。用NB的profiler跟了一下,发现是JFreeChart或者说是没有正确使用JFreeChart的TimeSeries导致的后果 TimeSeries有一个方法setMaximumItemAge: public void setMaximumItemAge(long periods) public void setMaximumItemAge(long periods) 该方法文档如下: Sets the number of time units in the ‘history’ for the series. This provides one mechanism for automatically dropping old data from the time series. For example, if a series contains daily data, you might set the history count to 30. Then, when you read more
烫手的
- 生活,就是一个期待跟着一个期待 - 被踩了 6,902 脚
- 悼念该悼念的,记住该记住的,知道该知道的 - 被踩了 1,592 脚
- 解决android 2.2下无法更新gmail、voice search、google search、street view - 被踩了 1,257 脚
- 关于 - 被踩了 1,126 脚
- 死于青春 - 被踩了 1,072 脚
近期评论
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《请教新浪》
- 牛肉丝 发表在《Sina,I服了U》
- 牛肉丝 发表在《一路走好》
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《猜想:互联网ID,“死号”判定与回收》
- CSDN这回一石激起千层浪了 | 拈花微笑 发表在《Sina,I服了U》
