This discussion is archived
0 Replies Latest reply: Jun 4, 2010 2:41 AM by 843798 RSS

xsocket problem

843798 Newbie
Currently Being Moderated
Dear Sir/Madam,

I have been developing a client server-application in J2SE 6.0 using xsocket framework for server-side app. I am sending data and it seeems that xsocket-based
server consumes increasingly more and more memory. This, eventually, leads to
optimization problems.

I have read about async/sync transmission, workpool sizes, read/send buffer sizing and the whole xsocket configuration chapter from xsocket's documentation.

I think the problem appears because there is too much data that cannot be yet
analyzed and is stored within read buffer. Due to the fact that the read buffer
is unlimited, this finally might bring about denial of service.

I'd be extremely grateful if anyone could help me out with this problem. I know
that the question (issue) is not only confined to xsocket library or Java, and would like to know more about how to handle data in such client-server applications.


I have also developed two small apps: one that (in a loop) send 100k SQL queries to the database and second that does the same but uses xsocket. The first one works
very well and memory doesnt exceed 4MB whereas the second has serious optimization issues as memory consumption increases in time.



Sincerely Yours,
Slawek