xsocket-develop Mailing List for xsocket (Page 3)
Status: Inactive
Brought to you by:
grro
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(8) |
Feb
(9) |
Mar
(9) |
Apr
(22) |
May
(28) |
Jun
(17) |
Jul
(10) |
Aug
(19) |
Sep
(4) |
Oct
(14) |
Nov
(26) |
Dec
(25) |
| 2009 |
Jan
(13) |
Feb
(17) |
Mar
(12) |
Apr
(4) |
May
(16) |
Jun
(6) |
Jul
(10) |
Aug
(24) |
Sep
(6) |
Oct
(5) |
Nov
(13) |
Dec
(10) |
| 2010 |
Jan
(17) |
Feb
(21) |
Mar
(10) |
Apr
(8) |
May
(2) |
Jun
(14) |
Jul
(7) |
Aug
(10) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(5) |
Mar
(1) |
Apr
|
May
(5) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Gaurav S. <Gau...@ar...> - 2010-07-12 09:59:20
|
Hi, In Linux I am not getting any problem. I am also using xsocket on Solaris machine. Can I use it on Solaris system? How do I activate the xsocket logs? Thanks in advance, Gaurav ________________________________ From: Gregor Roth [mailto:gre...@gm...] Sent: Saturday, July 10, 2010 6:21 PM To: Gaurav Sharma Cc: xso...@li... Subject: Re: [xSocket-develop] issue with usage on Solaris Hi Gaurav, each release is tested on linux (debian) and windows. Did you activated the xsocket log? Gregor ----- Original Message ----- From: Gaurav Sharma Sent: 07/10/10 01:06 PM To: xso...@li... Subject: [xSocket-develop] issue with usage on Solaris Hi, I have implemented an application on Solaris wherein I am listening for any login request on a particular port using xsocket. However after 5 to 6 hours my application gets hung and the login requests are not reaching the server. On further investigation I found that the requests are not getting passed from xsocket to the server. Is there an issue with Xsocket on Solaris? Is it tested on Solaris? Thanks in advance Gaurav ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." |
|
From: Gregor R. <gre...@gm...> - 2010-07-10 12:50:57
|
Hi Gaurav, each release is tested on linux (debian) and windows. Did you activated the xsocket log? Gregor ----- Original Message ----- From: Gaurav Sharma Sent: 07/10/10 01:06 PM To: xso...@li... Subject: [xSocket-develop] issue with usage on Solaris Hi, I have implemented an application on Solaris wherein I am listening for any login request on a particular port using xsocket. However after 5 to 6 hours my application gets hung and the login requests are not reaching the server. On further investigation I found that the requests are not getting passed from xsocket to the server. Is there an issue with Xsocket on Solaris? Is it tested on Solaris? Thanks in advance Gaurav ----------------------------------------------------------------- "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." |
|
From: Gaurav S. <Gau...@ar...> - 2010-07-10 11:32:24
|
Hi, I have implemented an application on Solaris wherein I am listening for any login request on a particular port using xsocket. However after 5 to 6 hours my application gets hung and the login requests are not reaching the server. On further investigation I found that the requests are not getting passed from xsocket to the server. Is there an issue with Xsocket on Solaris? Is it tested on Solaris? Thanks in advance Gaurav ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." |
|
From: Bhatnagar, V. (Ved) <vbh...@av...> - 2010-07-01 01:23:58
|
Hi, Can someone please tell me how to specify the ciphers for ssl based connections? Thank you, Ved |
|
From: Gregor R. <gre...@gm...> - 2010-06-28 06:36:15
|
Hi, have you aleady took a look into the JUNIT code http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/multiplexed/trunk/src/test/java/org/xsocket/connection/multiplexed/ Gregor ----- Original Message ----- From: MINGFEN WANG Sent: 06/26/10 03:47 AM To: xso...@li... Subject: [xSocket-develop] xSocket multiplexed sample code? Hi Everybody, There seems no complete sample code of xSocket multiplexed, can anybody show me some piece of codes to teach me how to use it ? Thanks Art Golf ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ xSocket-develop mailing list xSo...@li... https://lists.sourceforge.net/lists/listinfo/xsocket-develop |
|
From: MINGFEN W. <art...@gm...> - 2010-06-26 01:47:26
|
Hi Everybody, There seems no complete sample code of xSocket multiplexed, can anybody show me some piece of codes to teach me how to use it ? Thanks Art Golf |
|
From: MINGFEN W. <art...@gm...> - 2010-06-25 01:52:52
|
Hello Everybody, I have just subscribed the mail list, and I want to rewrite one of my Open Source Java project on kenai.com with great xsocket, if you have interest in the project, please help me. Here is the URL:Network acceleration 256 "The goal of this project is to achieve 256 times the network acceleration, based on my study of a simple algorithm, you can use hardware to achieve the algorithm on a server. " The project can run, you can download and test it by two command line windows: In the first window, you type, java Server In the second window, you type, java Client Trying to type some lines of sentences, type 'end' to stop. You will see duplicated sentences do not transport at all, and the compression rate is 256 ! The project is really useful to all of us, we can use it to boost the bandwidth of Internet to 256 times by a simple algorithm ! It need to be rewritten to a high performance version, please join me, maybe you can add it to your own project, or put it in a chip of product, if you are interested in it, please contact me: art...@gm... Thanks Art Golf |
|
From: <led...@ya...> - 2010-06-24 02:27:04
|
Hello, I am getting started with xSocket, although I don't have any questions yet, how could I get xSocket's java doc to show up in NetBeans? My understanding is that the java doc needs to be packaged in a *zip or folder with a special layout. I tried my hand at sucking the website (http://xsocket.sourceforge.net/core/apidocs/2_8_13/index.html), but my efforts were fruitless. Can anybody do this and post it to rapidshare or something like that? -Mikhail Kandel |
|
From: Gregor R. <gre...@gm...> - 2010-06-22 15:53:13
|
Hi, see http://xsocket.sourceforge.net/multiplexed/tutorial/V2/TutorialMultiplexed.htm http://xsocket.sourceforge.net/multiplexed/tutorial/V2/TutorialMultiplexed.htm and http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/multiplexed/trunk/src/test/java/org/xsocket/connection/multiplexed/ http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/multiplexed/trunk/src/test/java/org/xsocket/connection/multiplexed/ Gregor ----- Original Message ----- From: Enrique Llerena Domínguez Sent: 06/22/10 01:52 AM To: xso...@li... Subject: [xSocket-develop] example code request hi! could you send me or tell me where to find example code of xSocket multiplexed? thank you! Regards, Enrique Llerena Domínguez Project Leader http://endzonesoftware.com endzonesoftware.com http://endzonesoftware.com ----------------------------------------------------------------- En Messenger están mis contactos con los que sí tengo contacto www.vivirmessenger.com |
|
From: Enrique L. D. <ell...@ho...> - 2010-06-21 23:52:53
|
hi! could you send me or tell me where to find example code of xSocket multiplexed? thank you! Regards, Enrique Llerena Domínguez Project Leader endzonesoftware.com _________________________________________________________________ ¿Te crees fan de Messenger? Compruébalo www.vivirmessenger.com |
|
From: Brad M. <br...@br...> - 2010-06-08 22:08:08
|
So do you actually get OutOfMemoryException's? Increasing heap memory
usage isnt necessarily a memory leak. Any process which uses and
releases objects will see increasing heap memory usage, up until the
point where gc reclaims it. But gc won't bother reclaiming it until you
approach your memory limit. Eg if your min and max heap sizes are both
set to 512Mb you might not see any memory being reclaimed until you're
up to almost 500Mb
Which is why i'm interested to know what your min and max heap sizes are
(assuming you're even using the Sun VM, IBM's is totally different) and
whether you eventually see memory errors.
Given the usage you described, I would expect that the performance
bottleneck would be the database. 500 transactions per second is high
for most commodity databases.
Cheers,
Brad
Michal Bucko wrote:
> Hi Brad,
> I am running client and server (in Java and xsocket). Client is sending 500
> times/second to the server, and the server forwards message to as the
> database query. I think that the server cannot handle that much information
> (too much information!). When, for instance, the clientis turned off, the
> server still receives information for some time. Can we influence the buffer
> size? What is all about DirectBuffer (that helped before, but still the
> memory increases).
> Info: J2SE 6, org.xsocket.connection.dispatcher.maxHandles =
> 3org.xsocket.connection.client.readbuffer.preallocated.minSize =
> 10org.xsocket.connection.server.readbuffer.preallocated.minSize =
> 10org.xsocket.connection.client.readbuffer.preallocation.size =
> 64org.xsocket.connection.server.readbuffer.preallocation.size =
> 64org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold =
> 3org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold =
> 3org.xsocket.connection.server.readbuffer.usedirect =
> trueorg.xsocket.connection.server.readbuffer.preallocation.size =
> 64org.xsocket.connection.server.workerpoolSize =
> 5org.xsocket.connection.server.workerpoolMinSize =
> 1org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold = 3
> (i don't fully understand these parametres)
> Thank You for help,
> Michal
>
> Dnia 2010-06-07 20:31 Brad McEvoy napisał(a):
>
>> Hi Michal,
>>
>> I'm interested in finding out more abou this problem. Do you actually
>> get out of memory exception errors if this is left to run? What JVM are
>> you using and on what OS? Assuming you're using the sun VM, what is your
>> maximum and initial memory settings?
>>
>> Cheers,
>> Brad
>>
>> On Sun, 06 Jun 2010 15:42 +0200, "Michal Bucko"
>> <mic...@el...> wrote:
>>
>>> Hi Gregor,
>>>
>>> I will now use visual gc and provide more information ASAP. The problem
>>> appears even in the simple code where the only thing
>>> I do is sending a query to MySQL database. I have tried to trigger GC by
>>> using System.GC but it didnt work (the chart was smoother,
>>> but still it was going up). As I probably said before, using
>>> S_start -
>>> System.setProperty("org.xsocket.connection.server.readbuffer.usedirect",
>>> "true");C_start -
>>> System.setProperty("org.xsocket.connection.client.readbuffer.usedirect",
>>> "true");
>>> helped me to get 50MB memory consumption (very high) in 60 minutes
>>> instead
>>> of 250MB in 20minutes without it.
>>> Tried with flushing, but that didn't help at all.
>>> I will provide more info ASAP but could You, please, give me some hints
>>> as
>>> how to deal with GC/xsocket issues in general? Maybe
>>> this will help - in the same time Im working on visual gc info.
>>> Best regards,
>>> Michal
>>>
>>> Dnia 2010-06-05 17:31 Gregor Roth napisał(a):
>>>
>>>> />
>>>> Hi Michal,
>>>>
>>>> have you already check the garbage collection behaviour. xSocket should
>>>>
> be
>
>>> free of memory leaks. It will be permanently check for memory leaks. For
>>> this reason the garbage collector should free memory after a period or
>>> time
>>> (by exceeding a threshold). Did you check the memory behaviour of your
>>> app
>>> with tools such as visual gc?
>>>
>>>> Gregor
>>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: Michal Bucko
>>>> Sent: 06/05/10 01:39 PM
>>>> To: xso...@li...
>>>> Subject: Re: [xSocket-develop] Question about optimization
>>>>
>>>> Hi Gregor, So the question is: how can I write an application in Java
>>>>
> using
>
>>> xsocket library so that the application works as server application, ie.
>>> the
>>> server doesnt increase in memory consumption. Memory and profiling
>>> screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg
>>> http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help,
>>> Michal
>>>
>>>
> ----------------------------------------------------------------------------
>
>>> -- 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
>>>
>>>>
>>>
> ----------------------------------------------------------------------------
> --
>
>>> 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
>>>
>>>
>> --
>> Brad McEvoy
>> br...@br...
>>
>>
> >
|
|
From: M. B. <mic...@el...> - 2010-06-08 11:38:45
|
Hi Brad,
I am running client and server (in Java and xsocket). Client is sending 500
times/second to the server, and the server forwards message to as the
database query. I think that the server cannot handle that much information
(too much information!). When, for instance, the clientis turned off, the
server still receives information for some time. Can we influence the buffer
size? What is all about DirectBuffer (that helped before, but still the
memory increases).
Info: J2SE 6, org.xsocket.connection.dispatcher.maxHandles =
3org.xsocket.connection.client.readbuffer.preallocated.minSize =
10org.xsocket.connection.server.readbuffer.preallocated.minSize =
10org.xsocket.connection.client.readbuffer.preallocation.size =
64org.xsocket.connection.server.readbuffer.preallocation.size =
64org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold =
3org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold =
3org.xsocket.connection.server.readbuffer.usedirect =
trueorg.xsocket.connection.server.readbuffer.preallocation.size =
64org.xsocket.connection.server.workerpoolSize =
5org.xsocket.connection.server.workerpoolMinSize =
1org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold = 3
(i don't fully understand these parametres)
Thank You for help,
Michal
Dnia 2010-06-07 20:31 Brad McEvoy napisał(a):
>Hi Michal,
>
>I'm interested in finding out more abou this problem. Do you actually
>get out of memory exception errors if this is left to run? What JVM are
>you using and on what OS? Assuming you're using the sun VM, what is your
>maximum and initial memory settings?
>
>Cheers,
>Brad
>
>On Sun, 06 Jun 2010 15:42 +0200, "Michal Bucko"
><mic...@el...> wrote:
>> Hi Gregor,
>>
>> I will now use visual gc and provide more information ASAP. The problem
>> appears even in the simple code where the only thing
>> I do is sending a query to MySQL database. I have tried to trigger GC by
>> using System.GC but it didnt work (the chart was smoother,
>> but still it was going up). As I probably said before, using
>> S_start -
>> System.setProperty("org.xsocket.connection.server.readbuffer.usedirect",
>> "true");C_start -
>> System.setProperty("org.xsocket.connection.client.readbuffer.usedirect",
>> "true");
>> helped me to get 50MB memory consumption (very high) in 60 minutes
>> instead
>> of 250MB in 20minutes without it.
>> Tried with flushing, but that didn't help at all.
>> I will provide more info ASAP but could You, please, give me some hints
>> as
>> how to deal with GC/xsocket issues in general? Maybe
>> this will help - in the same time Im working on visual gc info.
>> Best regards,
>> Michal
>>
>> Dnia 2010-06-05 17:31 Gregor Roth napisał(a):
>> >/>
>> >Hi Michal,
>> >
>> >have you already check the garbage collection behaviour. xSocket should
be
>> free of memory leaks. It will be permanently check for memory leaks. For
>> this reason the garbage collector should free memory after a period or
>> time
>> (by exceeding a threshold). Did you check the memory behaviour of your
>> app
>> with tools such as visual gc?
>> >Gregor
>> >
>> >
>> >
>> >----- Original Message -----
>> >From: Michal Bucko
>> >Sent: 06/05/10 01:39 PM
>> >To: xso...@li...
>> >Subject: Re: [xSocket-develop] Question about optimization
>> >
>> >Hi Gregor, So the question is: how can I write an application in Java
using
>> xsocket library so that the application works as server application, ie.
>> the
>> server doesnt increase in memory consumption. Memory and profiling
>> screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg
>> http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help,
>> Michal
>>
----------------------------------------------------------------------------
>> -- 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
>> >
>>
----------------------------------------------------------------------------
--
>> 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
>>
>--
> Brad McEvoy
> br...@br...
>
> |
|
From: Brad M. <br...@br...> - 2010-06-07 08:48:12
|
Hi Michal,
I'm interested in finding out more abou this problem. Do you actually
get out of memory exception errors if this is left to run? What JVM are
you using and on what OS? Assuming you're using the sun VM, what is your
maximum and initial memory settings?
Cheers,
Brad
On Sun, 06 Jun 2010 15:42 +0200, "Michal Bucko"
<mic...@el...> wrote:
> Hi Gregor,
>
> I will now use visual gc and provide more information ASAP. The problem
> appears even in the simple code where the only thing
> I do is sending a query to MySQL database. I have tried to trigger GC by
> using System.GC but it didnt work (the chart was smoother,
> but still it was going up). As I probably said before, using
> S_start -
> System.setProperty("org.xsocket.connection.server.readbuffer.usedirect",
> "true");C_start -
> System.setProperty("org.xsocket.connection.client.readbuffer.usedirect",
> "true");
> helped me to get 50MB memory consumption (very high) in 60 minutes
> instead
> of 250MB in 20minutes without it.
> Tried with flushing, but that didn't help at all.
> I will provide more info ASAP but could You, please, give me some hints
> as
> how to deal with GC/xsocket issues in general? Maybe
> this will help - in the same time Im working on visual gc info.
> Best regards,
> Michal
>
> Dnia 2010-06-05 17:31 Gregor Roth napisał(a):
> >/>
> >Hi Michal,
> >
> >have you already check the garbage collection behaviour. xSocket should be
> free of memory leaks. It will be permanently check for memory leaks. For
> this reason the garbage collector should free memory after a period or
> time
> (by exceeding a threshold). Did you check the memory behaviour of your
> app
> with tools such as visual gc?
> >Gregor
> >
> >
> >
> >----- Original Message -----
> >From: Michal Bucko
> >Sent: 06/05/10 01:39 PM
> >To: xso...@li...
> >Subject: Re: [xSocket-develop] Question about optimization
> >
> >Hi Gregor, So the question is: how can I write an application in Java using
> xsocket library so that the application works as server application, ie.
> the
> server doesnt increase in memory consumption. Memory and profiling
> screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg
> http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help,
> Michal
> ----------------------------------------------------------------------------
> -- 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
> >
> ------------------------------------------------------------------------------
> 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
>
--
Brad McEvoy
br...@br...
|
|
From: M. B. <mic...@el...> - 2010-06-06 13:42:17
|
Hi Gregor,
I will now use visual gc and provide more information ASAP. The problem
appears even in the simple code where the only thing
I do is sending a query to MySQL database. I have tried to trigger GC by
using System.GC but it didnt work (the chart was smoother,
but still it was going up). As I probably said before, using
S_start -
System.setProperty("org.xsocket.connection.server.readbuffer.usedirect",
"true");C_start -
System.setProperty("org.xsocket.connection.client.readbuffer.usedirect",
"true");
helped me to get 50MB memory consumption (very high) in 60 minutes instead
of 250MB in 20minutes without it.
Tried with flushing, but that didn't help at all.
I will provide more info ASAP but could You, please, give me some hints as
how to deal with GC/xsocket issues in general? Maybe
this will help - in the same time Im working on visual gc info.
Best regards,
Michal
Dnia 2010-06-05 17:31 Gregor Roth napisał(a):
>/>
>Hi Michal,
>
>have you already check the garbage collection behaviour. xSocket should be
free of memory leaks. It will be permanently check for memory leaks. For
this reason the garbage collector should free memory after a period or time
(by exceeding a threshold). Did you check the memory behaviour of your app
with tools such as visual gc?
>Gregor
>
>
>
>----- Original Message -----
>From: Michal Bucko
>Sent: 06/05/10 01:39 PM
>To: xso...@li...
>Subject: Re: [xSocket-develop] Question about optimization
>
>Hi Gregor, So the question is: how can I write an application in Java using
xsocket library so that the application works as server application, ie. the
server doesnt increase in memory consumption. Memory and profiling
screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg
http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help, Michal
----------------------------------------------------------------------------
-- 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
> |
|
From: Gregor R. <gre...@gm...> - 2010-06-05 15:37:11
|
/> Hi Michal, have you already check the garbage collection behaviour. xSocket should be free of memory leaks. It will be permanently check for memory leaks. For this reason the garbage collector should free memory after a period or time (by exceeding a threshold). Did you check the memory behaviour of your app with tools such as visual gc? Gregor ----- Original Message ----- From: Michal Bucko Sent: 06/05/10 01:39 PM To: xso...@li... Subject: Re: [xSocket-develop] Question about optimization Hi Gregor, So the question is: how can I write an application in Java using xsocket library so that the application works as server application, ie. the server doesnt increase in memory consumption. Memory and profiling screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help, Michal ------------------------------------------------------------------------------ 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 |
|
From: M. B. <mic...@el...> - 2010-06-05 11:39:51
|
Hi Gregor, So the question is: how can I write an application in Java using xsocket library so that the application works as server application, ie. the server doesnt increase in memory consumption. Memory and profiling screenshots: http://wgrajfoto.pl/pokaz/img0610/aaadc52.jpg http://wgrajfoto.pl/pokaz/img0610/pamiec3d05.jpg Thank You for help, Michal |
|
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 |
|
From: M. B. <mic...@el...> - 2010-06-04 22:57:16
|
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 |
|
From: fei h. <aar...@gm...> - 2010-05-18 04:37:38
|
honored authors ,
I ' m a junior coder. Recently, I 'd like to design a net communication
framework based on socket like your GREAT WORK xSocket. I ' ve read the API
but my mind is still in a mess. Could you please do me a favour ? I want
to know how to design the bundles like EndPoint , Connection, Handler...
Also, the description of each bundle in detail is a plus.
Thank you very much ! I really want to know it and study from that. I
hope you can reply me soon.
Best wishes!
aaron.
|
|
From: Mike T. <mik...@ho...> - 2010-05-09 11:46:58
|
Hi Bit of a newbie to writing socket server code, but this library looks like it will do a lot of the donkey work, so I am going to give it a go. The requirement is fairly simple, allow connections from multiple clients, process the data they send (i.e. validate and send back an ack) and and write it to the database. I also need to poll the database for outgoing messages to any "online" clients. Would expect to need to support 100-250 clients concurrently. Should I handle the receive events in the onData event or is it best to pass the data to a worker thread (or pool of worker threads)? Any examples of this would be greatly appreciated. As for the outgoing messages, I am not too sure how to implement this. One worker thread that polls the database and if it manages to find data for a client, it sends it directly to the connection? Any guidelines would be appreciated. Cheers Mike _________________________________________________________________ http://clk.atdmt.com/UKM/go/195013117/direct/01/ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now |
|
From: Gregor R. <gre...@gm...> - 2010-04-28 16:46:55
|
Hi Kasper,
thank you very much for your detailed report.
I run your code by using JProfiler. JProfiler shows similar graphics as you reported. This is caused by the selector approach/periodic checks. Internally xSockets uses a selector call with timeout -> selector.select(1000). This means the select will be called each second. Internally java classes such as sun.nio.ch.SelectorImpl create temporary objects such as a KeyIterator object for each select loop.
If I trigger the gc run, I will observe that the instance count/size falls back to the initial value.
cheers
Gregor
> ----- Original Message -----
> From: Kasper Grubbe
> Sent: 04/28/10 04:27 PM
> To: xso...@li...
> Subject: [xSocket-develop] Memory problems while using xSocket as a server
>
Hi, im experiencing a possible memoryleak when using xSocket.
I am running with the xSocket(core) with the following version:
Implementation-Version=2.8.12
Implementation-Date=2010-04-19 09:26 MESZ
The amount of memory and live objects is just rising and rising even
with no connections at all. The NetBeans profiler only shows that it
is a HashMap iterator that is using more and more memory.
Try to use the following code (with a profiler that you like, i am
using NetBeans):
import org.xsocket.connection.*;
public class NextServer
{
protected static IServer srv = null;
public static void main(String[] args)
{
try
{
// http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm
srv = new Server("127.0.0.1", 1338, new xGuestSocketDataHandler());
srv.run();
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
protected static void shutdownServer()
{
try
{
srv.close();
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
}
And my xGuestSocketDataHandler that i am using as a connection handler:
import java.io.IOException;
import java.nio.BufferUnderflowException;
import java.nio.channels.ClosedChannelException;
import org.xsocket.*;
import org.xsocket.connection.*;
public class xGuestSocketDataHandler implements IDataHandler,
IConnectHandler, IDisconnectHandler
{
public boolean onData(INonBlockingConnection nbc) throws
IOException, BufferUnderflowException, ClosedChannelException,
MaxReadSizeExceededException
{
try
{
String data = nbc.readStringByDelimiter("\r\n> ");
if(data.trim().length() > 0)
{
System.out.println("Incoming data: " + data);
String[] message = data.split(";");
if(message.length == 2 && message[0].equalsIgnoreCase("auth"))
{
//IHandler newUserHandler = new
xUserSocketDataHandler(message[1],nbc);
//nbc.setHandler(newUserHandler);
}
else if(message[0].equalsIgnoreCase("SHUTDOWN"))
{
NextServer.shutdownServer();
}
else
{
nbc.write("Authentication failed!");
}
}
}
catch(Exception ex)
{
System.out.println("onData: " + ex.getMessage());
}
return true;
}
public boolean onConnect(INonBlockingConnection nbc) throws
IOException, BufferUnderflowException, MaxReadSizeExceededException
{
try
{
nbc.write("K-THXBYE");
System.out.println("onConnect");
}
catch(Exception ex)
{
System.out.println("onConnect: " + ex.getMessage());
}
return true;
}
public boolean onDisconnect(INonBlockingConnection nbc) throws IOException
{
try
{
System.out.println("onDisconnect");
}
catch(Exception ex)
{
System.out.println("onDisconnect: " + ex.getMessage());
}
return true;
}
}
This is when the program is launched:
http://imgur.com/zyDrh.png
And after a couple of minutes (7-8 minutesl):
http://imgur.com/jm1M3.png
When 26 threads connects and writes to the server:
http://imgur.com/tcWfA.png
When the threads disconnects again:
http://imgur.com/boUv0.png (The number of KeyIterators are still rising)
Running after 30-40 minutes:
http://imgur.com/CWPD8.png
I don't believe that i am doing anything wrong. Am I? Is it a bug?
Best regards
--
Kasper Grubbe
Computer Science AP
Phone: (+45) 42 42 42 74
Mail: kas...@gm...
Kettegårds Allè 70,1,6115
2650 Hvidovre
Denmark
------------------------------------------------------------------------------
_______________________________________________
xSocket-develop mailing list
xSo...@li...
https://lists.sourceforge.net/lists/listinfo/xsocket-develop
|
|
From: Kasper G. <kaw...@gm...> - 2010-04-28 14:28:01
|
Hi, im experiencing a possible memoryleak when using xSocket.
I am running with the xSocket(core) with the following version:
Implementation-Version=2.8.12
Implementation-Date=2010-04-19 09:26 MESZ
The amount of memory and live objects is just rising and rising even
with no connections at all. The NetBeans profiler only shows that it
is a HashMap iterator that is using more and more memory.
Try to use the following code (with a profiler that you like, i am
using NetBeans):
import org.xsocket.connection.*;
public class NextServer
{
protected static IServer srv = null;
public static void main(String[] args)
{
try
{
// http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm
srv = new Server("127.0.0.1", 1338, new xGuestSocketDataHandler());
srv.run();
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
protected static void shutdownServer()
{
try
{
srv.close();
}
catch(Exception ex)
{
System.out.println(ex.getMessage());
}
}
}
And my xGuestSocketDataHandler that i am using as a connection handler:
import java.io.IOException;
import java.nio.BufferUnderflowException;
import java.nio.channels.ClosedChannelException;
import org.xsocket.*;
import org.xsocket.connection.*;
public class xGuestSocketDataHandler implements IDataHandler,
IConnectHandler, IDisconnectHandler
{
public boolean onData(INonBlockingConnection nbc) throws
IOException, BufferUnderflowException, ClosedChannelException,
MaxReadSizeExceededException
{
try
{
String data = nbc.readStringByDelimiter("\r\n");
if(data.trim().length() > 0)
{
System.out.println("Incoming data: " + data);
String[] message = data.split(";");
if(message.length == 2 && message[0].equalsIgnoreCase("auth"))
{
//IHandler newUserHandler = new
xUserSocketDataHandler(message[1],nbc);
//nbc.setHandler(newUserHandler);
}
else if(message[0].equalsIgnoreCase("SHUTDOWN"))
{
NextServer.shutdownServer();
}
else
{
nbc.write("Authentication failed!");
}
}
}
catch(Exception ex)
{
System.out.println("onData: " + ex.getMessage());
}
return true;
}
public boolean onConnect(INonBlockingConnection nbc) throws
IOException, BufferUnderflowException, MaxReadSizeExceededException
{
try
{
nbc.write("K-THXBYE");
System.out.println("onConnect");
}
catch(Exception ex)
{
System.out.println("onConnect: " + ex.getMessage());
}
return true;
}
public boolean onDisconnect(INonBlockingConnection nbc) throws IOException
{
try
{
System.out.println("onDisconnect");
}
catch(Exception ex)
{
System.out.println("onDisconnect: " + ex.getMessage());
}
return true;
}
}
This is when the program is launched:
http://imgur.com/zyDrh.png
And after a couple of minutes (7-8 minutesl):
http://imgur.com/jm1M3.png
When 26 threads connects and writes to the server:
http://imgur.com/tcWfA.png
When the threads disconnects again:
http://imgur.com/boUv0.png (The number of KeyIterators are still rising)
Running after 30-40 minutes:
http://imgur.com/CWPD8.png
I don't believe that i am doing anything wrong. Am I? Is it a bug?
Best regards
--
Kasper Grubbe
Computer Science AP
Phone: (+45) 42 42 42 74
Mail: kas...@gm...
Kettegårds Allè 70,1,6115
2650 Hvidovre
Denmark
|
|
From: Gregor R. <gre...@gm...> - 2010-04-28 04:00:53
|
Hi, xSocket supports non-blocking writing by a flushMode property. INonBlockingConnection nbc = ... nbc.setFlushmode(FlushMode.ASYNC); Default is SYNC. If sync, the write method will blocking until the data is written to the OS-level socket out buffer. If async the data will be buffered by xSocket internally. The method returns immediately. Please refer to http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm. Multiplexing will be used to share the same pyhsical connection. This approach helps to used the number of open physical connections. There are UseCase where the number of concurrent connections have to keep small. Gregor > ----- Original Message ----- > From: Kasper Grubbe > Sent: 04/26/10 10:34 PM > To: xso...@li... > Subject: [xSocket-develop] Some explanation of non-blocking I/O and multiplex > Hi, I am playing with networking sockets for the very first time, and while playing around with Java networking in java.net.Socket I was able to build a small socket server that didn't scale so much because i built it with a thread for each client. I have now switched to xScockets, and I have questions about a couple of words that you are using for explaining your framework. Non-blocking IO: Wikipedia writes: "Asynchronous I/O, or non-blocking I/O, is a form of input/output processing that permits other processing to continue before the transmission has finished.". Consider the following code: ArrayList<INonBlockingConnection> clients = new ArrayList<INonBlockingConnection>(); public void sendToClients(String msg) { for(INonBlockingConnection client : this.clients) { client.write(msg); } } Does that mean that a client that is slow to recieve the msg, would not block for the next client in the list? And does it mean that client.write(msg) would terminate the same moment that it is run? My next question is what multiplexing is, and what it is useful for? Which types of applications? Thanks, Have a fantastic day :) -- Kasper Grubbe Computer Science AP ------------------------------------------------------------------------------ _______________________________________________ xSocket-develop mailing list xSo...@li... https://lists.sourceforge.net/lists/listinfo/xsocket-develop |
|
From: Kasper G. <ka...@un...> - 2010-04-26 20:34:58
|
Hi,
I am playing with networking sockets for the very first time, and
while playing around with Java networking in java.net.Socket I was
able to build a small socket server that didn't scale so much because
i built it with a thread for each client.
I have now switched to xScockets, and I have questions about a couple
of words that you are using for explaining your framework.
Non-blocking IO:
Wikipedia writes: "Asynchronous I/O, or non-blocking I/O, is a form of
input/output processing that permits other processing to continue
before the transmission has finished.". Consider the following code:
ArrayList<INonBlockingConnection> clients = new
ArrayList<INonBlockingConnection>();
public void sendToClients(String msg)
{
for(INonBlockingConnection client : this.clients)
{
client.write(msg);
}
}
Does that mean that a client that is slow to recieve the msg, would
not block for the next client in the list? And does it mean that
client.write(msg) would terminate the same moment that it is run?
My next question is what multiplexing is, and what it is useful for?
Which types of applications?
Thanks,
Have a fantastic day :)
--
Kasper Grubbe
Computer Science AP
|
|
From: Gregor R. <gre...@gm...> - 2010-04-16 04:14:59
|
Hi Brad, this is a default behaviour of TCP. Setting the SO_REUSEADDR option overrides that behaviour. In this case the port will be reused port immediately. Map<String, Object> options = new HashMap<String, Object>(); options.put(IConnection.SO_REUSEADDR, true); Server server = new Server(0, options, new Handler()); Gregor > ----- Original Message ----- > From: Brad McEvoy > Sent: 04/16/10 12:50 AM > To: xso...@li... > Subject: [xSocket-develop] graceful shutdown > Hi Guys, Firstly, I'd like to say what really great technology xsocket is, it makes it very easy to do very cool things :) I'm having a problem getting xsocket to shutdown gracefully. I'm starting the server with ConnectionUtils.start( server ), and when the application is shutdown i'm calling server.close(). But the port continues to be in use so i can't restart my application - even after the java process has gone (which i didnt think was possible). Its very strange. I have to wait between 1 and 5 minutes before the socket becomes free and i can start the application again. This problem only seems to happen on my server which is running linux 2.6.16. There are no other process using that port (confirmed with netstat) Any ideas? Thanks, Brad ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ xSocket-develop mailing list xSo...@li... https://lists.sourceforge.net/lists/listinfo/xsocket-develop |