You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you see instead?
task status is FAILED, and reason is OutOfMemory.
Please tell us about your environment:
Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
a. run jmap -heap 16 found memory top 1 is org.apache.rocketmq.connect.runtime.stats.ConnectStatsService.
b. use arthas watch sourceTaskTimesList and sinkTaskTimesList
SOLUTION:
private void sampling() {
this.lockSampling.lock();
try {
this.sourceTaskTimesList.add(new CallSnapshot(System.currentTimeMillis(), sourceTaskTimesTotal()));
if (this.sourceTaskTimesList.size() > (MAX_RECORDS_OF_SAMPLING + 1)) {
this.sourceTaskTimesList.removeFirst();
}
// !!! sourceTaskTimesList is wrong !!!
// !!! should be sinkTaskTimesList !!!
this.sinkTaskTimesList.add(new CallSnapshot(System.currentTimeMillis(), sinkTaskTimesTotal()));
if (this.sourceTaskTimesList.size() > (MAX_RECORDS_OF_SAMPLING + 1)) {
this.sourceTaskTimesList.removeFirst();
}
} finally {
this.lockSampling.unlock();
}
}
The text was updated successfully, but these errors were encountered:
VictoryAnn
changed the title
Connect runtime happen out of memory
Connect runtime out of memory
Oct 24, 2024
VictoryAnn
changed the title
Connect runtime out of memory
【BUG】Connect runtime out of memory
Oct 24, 2024
BUG REPORT
What did you do (The steps to reproduce)?
What is expected to see?
task status is RUNNING
What did you see instead?
task status is FAILED, and reason is OutOfMemory.
Please tell us about your environment:
Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
a. run
jmap -heap 16
found memory top 1 is org.apache.rocketmq.connect.runtime.stats.ConnectStatsService.b. use arthas watch sourceTaskTimesList and sinkTaskTimesList
SOLUTION:
The text was updated successfully, but these errors were encountered: