How many threads does Servoy 8.2.x Server need?

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

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

Postby jcompagner » Thu Dec 21, 2017 1:15 pm

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?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

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

Postby swingman » Thu Dec 21, 2017 1:38 pm

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...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby jcompagner » Thu Dec 21, 2017 6:48 pm

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.
Attachments
rmitnl.jar
(134.63 KiB) Downloaded 313 times
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

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

Postby swingman » Thu Dec 21, 2017 8:32 pm

Thanks Johan, I will upload the JAR later tonight and leave a client open overnight...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby swingman » Fri Dec 22, 2017 12:51 am

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
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby lwjwillemsen » Fri Dec 22, 2017 9:42 am

In which Servoy 8 version will this new jar be shipped?
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 680
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

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

Postby swingman » Fri Dec 22, 2017 9:57 am

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.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

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

Postby jcompagner » Fri Dec 22, 2017 10:12 am

lwjwillemsen wrote:In which Servoy 8 version will this new jar be shipped?


Servoy 8.2.3
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

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

Postby swingman » Fri Dec 22, 2017 11:01 am

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!
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Previous

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron