Thanks for report!

I have added "TasksMax=infinity" to the default openmeetings.service
(any number might be exhausted if more users will enter)

On Sun, 31 May 2020 at 21:21, kaffeesurrogat <[email protected]>
wrote:

> Hello Everybody,
>
> i found some time to fiddle around with openmeetings. Did a fresh
> install of OM5.0.0-M5 Snapshot revision c5c0381 on ubuntu 18.04 LTS on VPS.
>
> In the beginning users lost their connections to the server and had to
> relogin. I used
>
> watch -n 1 systemctl status openmeetings
>
> to check the number of threads openmeetings is using. The upper limit
> was set to 165 which was quickly reached by turning the cam or mic on
> and off.
>
> I've modified the file openmeetings.service from Maxim which i copied to
> /etc/systemd/system/openmeetings.service to start openmeetings ....
>
> The file looks like this right now:
>
>
> ---------------------------------------------------------------------------------
>
> ##############################################
> # Licensed under the Apache License, Version 2.0 (the "License");
> # you may not use this file except in compliance with the License.
> # You may obtain a copy of the License at
> #
> #     http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
> ##############################################
>
> # /etc/systemd/system/openmeetings.service
> # sudo systemctl daemon-reload
> # sudo systemctl restart openmeetings
>
> [Unit]
> Description=Apache OpenMeetings server
> After=network.target
>
> [Service]
> Type=forking
>
> Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
> Environment=CATALINA_PID=/var/run/openmeetings.pid
> WorkingDirectory=/opt/open505
> Environment=CATALINA_HOME=/opt/open505
> Environment=CATALINA_BASE=/opt/open505
> Environment='CATALINA_OPTS=-Xms1G -Xmx15G -server -XX:+UseParallelGC'
> Environment='JAVA_OPTS=-Djava.awt.headless=true
> -Djava.security.egd=file:/dev/./urandom'
>
> ExecStart=/opt/open505/bin/startup.sh
> ExecStop=/opt/open505/bin/shutdown.sh
>
> User=kurento
> Group=nogroup
> UMask=0007
> RestartSec=10
> Restart=always
>
> TasksMax=500
>
> [Install]
> WantedBy=multi-user.target
>
>
> ---------------------------------------------------------------------------------
>
> I've added the line TasksMax=500. Using
>
> watch -n 1 systemctl status openmeetings
>
> again, I could see, that the number of tasks  mounts up to 200 until it
> lowers to something like
> 100 again ...
>
> Did help, connections now stable ...
>
>
> catalina.out:
>
> ERROR 05-30 21:48:34.407 o.a.o.c.u.WebSocketHelper:77 [Thread-1666] -
> Error while sending message to client
> java.lang.OutOfMemoryError: unable to create native thread: possibly out
> of memory or process/resource limits reached
>
> ERROR 05-30 21:59:10.135 o.a.o.c.u.WebSocketHelper:64 [Thread-1213] -
> Error while sending binary message to client
> java.io.IOException: java.io.EOFException
>
> 354,835s][warning][os,thread] Failed to start thread - pthread_create
> failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
> [354,836s][warning][os,thread] Failed to start thread - pthread_create
> failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
>
>
> 30-May-2020 22:12:08.880 SCHWERWIEGEND [https-jsse-nio-5443-exec-3]
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process
> Verarbeitung der Anfrage fehlgeschlagen
>         java.lang.OutOfMemoryError: unable to create native thread:
> possibly out of memory or process/resource limits reached
>
> Have fun and a happy weekend,
>
> Kaffeesurrogat
>
>
>
>
>
>
>
>

-- 
Best regards,
Maxim

Reply via email to