Page 2 of 2

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Thu Dec 21, 2017 1:15 pm
by jcompagner
if you want to try really something else then you have to use 2waysocket (the rest are the same thing in a bit different configurations)

the thing is that rmi connections that are idle, so not used anymore should be removed by the "rmi.connection.timeout" setting we have on the admin page.
thats default i think 120 seconds but even if i lower that to 12 seconds it doesn't seem to help for me locally

In 7.4 you did use also Http&Socket or just Socket?

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Thu Dec 21, 2017 1:38 pm
by swingman
From the 7.4.x servoy.properties.
Code: Select all
SocketFactory.tunnelConnectionMode=http&socket
rmi.connection.timeout=120


Same settings as for 8.2.2. I tried shortening the RMI timeout to 15 and even set it to 0 during our network hell a few weeks back. It had no effect.
I have not tried 2waysocket, I was a bit concerned reading the documentation about having to manually switch all the clients back if it did not work...

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Thu Dec 21, 2017 6:48 pm
by jcompagner
ok i think i finally found it..

Can you update/overwrite the rmitnl.jar from you 822 install?

It seems that the rmi sockets didn't close correctly and because of that keep hanging around.

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Thu Dec 21, 2017 8:32 pm
by swingman
Thanks Johan, I will upload the JAR later tonight and leave a client open overnight...

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Fri Dec 22, 2017 12:51 am
by swingman
I have uploaded the jar and I'm pretty sure it has fixed the problem:
I now only have one RMI TCP Connection thread relating to my inactive client.

Code: Select all
Thread: RMI TCP Connection(5)-XXX.XXX.XXX.164, state: WAITING, total cpu time: 11.254ms, total user time: 10.039ms


and a few minutes later the old thread is gone and I have a new one!

Code: Select all
Thread: RMI TCP Connection(6)-XXX.XXX.XXX.164, state: WAITING, total cpu time: 1.311ms, total user time: 1.099ms

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Fri Dec 22, 2017 9:42 am
by lwjwillemsen
In which Servoy 8 version will this new jar be shipped?

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Fri Dec 22, 2017 9:57 am
by swingman
Next morning: Yes, the problem is gone. With the default jar I would have 350 threads by now. I have 87, the few extra threads have appeared because a second Smart Client has logged on.

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Fri Dec 22, 2017 10:12 am
by jcompagner
lwjwillemsen wrote:In which Servoy 8 version will this new jar be shipped?


Servoy 8.2.3

Re: How many threads does Servoy 8.2.x Server need?

PostPosted: Fri Dec 22, 2017 11:01 am
by swingman
Thanks again Johan for looking into this issue. It was driving me and one of my clients mad...
Have a nice Christmas break and a prosperous new year!