Hi all,
I have a small Websocket Server where about 8 connections at the same time are made.
To be sure that th web-page is updated all the time I have a refresh time of the web page set to 10 minutes. The Web-page disconnects and connects again after this time has reach.
Now the problem.
The Server start with a Memory usage from about 30mb and threads usage 27.
Startup the server with this code below.
After a while the server reach more then this 128mb and I get a out of memory error.
Threats are also go high to 400-500 threads
So I have the idea that there still old unused connections busy with something.
How can I delete this unused connections and free up my resources.
Many thanks for help
I have a small Websocket Server where about 8 connections at the same time are made.
To be sure that th web-page is updated all the time I have a refresh time of the web page set to 10 minutes. The Web-page disconnects and connects again after this time has reach.
Now the problem.
The Server start with a Memory usage from about 30mb and threads usage 27.
Startup the server with this code below.
B4X:
#VirtualMachineArgs: -Xms128m -Xmx128m
After a while the server reach more then this 128mb and I get a out of memory error.
Threats are also go high to 400-500 threads
So I have the idea that there still old unused connections busy with something.
How can I delete this unused connections and free up my resources.
Many thanks for help