Forum Discussion
Most issues causing high memory usage are Snaplex capacity issues. The pipeline workload would have to analyzed and tuned to find why memory usage is high. Things which help to avoid memory issues include
- Reduce concurrency in PipeExec snap
- Reduce max memory usage setting in Sort and In-Memory Lookup snaps
- Add additional nodes in the Snaplex (horizontal scaling). This is useful if the workload is parallelizable at the pipeline level. Setting the Snaplex property in the PipeExec snap will ensure that the pipeline workload gets distributed across nodes in the Snaplex.
- Increase heap memory available on the Snaplex nodes (vertical scaling). This can be used when the workload is not easily parallelizable at the pipeline level.
If the issue is that memory usage does not go down after pipeline execution completes, that would be unusual. Look at any custom snaps and scripts being used to see if they could be causing leaks. If the issue still persists, open a Support ticket for further investigation.
- aditya_kurhade6 years agoNew Contributor
hi @akidave,
we have written our own js script in the pipeline flow, and used java collections in it.
can this lead to memory leak. as I believe there must be some GC activity taken place by snaplogic jvm itself. do we have to care about the variables that we declare in our javascripts ?
we are facing same memory leak issue, even after finishing pipeline execution the memory is not getting freed.
as you said it is unusual so does that mean our custom javascript code is leaking memory and if that is the case the variables memory clean up task should be performed by snaplogic itself.
Regards,
Aditya Kurhade.