Re: [xSocket-develop] Question about optimization
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@gm...> - 2010-06-05 07:30:57
|
Hello Michal, to keep the programming interface of xsocket simple and easy the library does not implement a recycle algorithm to reuse the bytebuffers which are used to read the network data. Doing this would introduce undesirable significant limitations in the API. This means the bytebuffers will be recycled by the Java vm (garbage collector). I suppose that you observed this behaviour. Gregor ----- Original Message ----- From: Michal Bucko Sent: 06/05/10 12:30 AM To: xso...@li... Subject: [xSocket-develop] Question about optimization Dear Xsocket Team, I have been developing an application using Java and xsocket library. I have, however, a problem with increasing consumption of memory. Profiling tool says that DirectBuffer or Byte[] is heavily used and memory consumption increases fast. I have used usedirect option- it seems that it has helped but still memory consumption increases but not that fast. Could You, please, help me solve this problem? Regards, Michal Bucko ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ xSocket-develop mailing list xSo...@li... https://lists.sourceforge.net/lists/listinfo/xsocket-develop |