-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [Worker] RemoteShell tasks may have memory leak issue #15851
Comments
Should be fixed by #15348 |
this issue you mentioned had been solved locally before. memory leak still exists |
Have you close the RemoteExecutor?
|
@simmonn Could you please provide the heap dump file or stack info? Maybe this is caused by thread leak. |
Please try to change the heartbeatType to IGNORE
|
I simulated it in the test environment. Executing the SSH command via shell works fine. However, when executing tasks via RemoteShell, the tasks will also get stuck after a while. Here are the stack info. |
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs. |
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future. |
Search before asking
What happened
Version:3.2.0
jvm options: -Xmx3g -Xms3g -Xmn1g
jdk:amazon-corretto-11.0.19.7.1-linux-x86_64
My project has 60 RemoteShell scheduled tasks(executing php commands). After running for a while, there are frequent Full GC occurrences, causing all tasks to fail, leading to false deadlocks on the worker nodes.So I had to change remoteshell to shell task which command using ssh -i id_rsa ''.
Apart from some error logs, I also noticed WARN logs with NPE (NullPointerException) occurring every time a task is executed.
[WARN] 2024-04-10 04:01:27.782 +0800 org.apache.sshd.client.session.ClientSessionImpl:[618] - [WorkflowInstance-0][TaskInstance-0] - exceptionCaught(ClientSessionImpl[root@/172.19.23.121:22])[state=Opened] NullPointerException: No customized heartbeat handler registered
here is error log:
here is the snapshot of host's memory:
What you expected to happen
execute remoteshell tasks and has no memory leaks
How to reproduce
create remoteshell task,and schedules them in a short time
Anything else
No response
Version
3.2.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: