NetXMS Support Forum

English Support => General Support => Topic started by: Marcin on July 15, 2015, 09:29:20 AM

Title: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on July 15, 2015, 09:29:20 AM
Hello,

I observe that every day memory consumption of netxmsd is increasing by around 1GB.
After two weeks netxsmd consumed 20GB of physical memory on Solaris system.
Server was restarted 13.07. Two days later memory usage already increased to 4GB:

I'm attaching pmap output.

Best regards,
Marcin
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Victor Kirhenshtein on July 16, 2015, 06:07:29 PM
Hi,

I recommend to try 2.0-M5 - some memory leaks was fixed in that release.

Best regards,
Victor
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on July 17, 2015, 02:10:49 PM
Hi Victor,

M5 release for Agent is not working on Solaris:

[root] /opt/netxms/bin $ ./nxagentd
ld.so.1: nxagentd: fatal: libappagent.so.2: open failed: No such file or directory
Killed

[root] /opt/netxms/bin $ ls -la /opt/netxms/lib/libappagent.so*
lrwxrwxrwx   1 root     root          20 Jul 17 13:06 /opt/netxms/lib/libappagent.so -> libappagent.so.1.0.0
lrwxrwxrwx   1 root     root          20 Jul 17 13:06 /opt/netxms/lib/libappagent.so.1 -> libappagent.so.1.0.0
-rwxr-xr-x   1 root     root      151568 Apr 29 20:30 /opt/netxms/lib/libappagent.so.1.0.0

Best regards,
Marcin
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Victor Kirhenshtein on July 17, 2015, 08:12:34 PM
Hi,

did you install it from sources or from binary package?

Best regards,
Victor
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on July 20, 2015, 09:30:12 AM

I install from binary package.
I did a rollback to M2 version.
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on July 27, 2015, 11:48:13 AM
Hi Victor,

Is it a bug in the M5 release?
Should I create a symlink: libappagent.so.2 -> libappagent.so.1.0.0 or M5 should be delivered with new version of agent library?

Best regards,
Marcin
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on September 24, 2015, 10:00:16 AM
Hi Victor,

How could I install NetXMS M5 release on Solaris?
I'm using binary packages.

Best regards,
Marcin
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Victor Kirhenshtein on October 07, 2015, 12:58:55 PM
Hi!

Could you please try to install this agent: https://www.dropbox.com/s/da2omgyrhja6dtj/RADnxagent.2.0-RC2.sparc.pkg.gz?dl=0 (https://www.dropbox.com/s/da2omgyrhja6dtj/RADnxagent.2.0-RC2.sparc.pkg.gz?dl=0)?

It is 2.0-RC2 that will be officially released in a few days. I fixed errors in package so it should contain correct libraries now. I recommend to uninstall previous version and make sure that /opt/netxms/lib directory is empty before installing this version.

Best regards,
Victor
Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on October 22, 2015, 10:35:01 AM
Hi,

Today I installed officially released 2.0-RC2 agent. I can confirm there are no issues with libraries.
I will upgrade server package and check if still there are memory leaks as soon as Oracle NetXMS disk space consumption problem will be solved.

Best regards,
Marcin

Title: Re: MetXMS 2.0-M2 - possible memory leaks on Solaris
Post by: Marcin on November 06, 2015, 06:18:11 PM
Hi,

NetXMS version 2.0-RC2 solved the problem with memory leak.

Best regards,
Marcin