Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Constant growth of memory
Constant growth of memory [message #1796345] Thu, 11 October 2018 11:02 Go to next message
Vito Scornavacche is currently offline Vito ScornavaccheFriend
Messages: 14
Registered: February 2018
Junior Member
Hi all,
I have a Raspberry pi2 with Kura on-board. It is reading with ModbusTCP 2 assets with about 40 signals each one and sends its to a MQTT broker. When it starts the memory used by the java process is about 29% of the total 1 GB. The problem is that every hour it grow of about 0,2% until it goes to an out of memory stop.
Had someone the same problem or is one of my custom components having memory leakage?
Re: Constant growth of memory [message #1796468 is a reply to message #1796345] Sun, 14 October 2018 07:03 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
could you provide more information about the setup, version of Kura, eventually third party software installed.

Best regards,
Matteo
Re: Constant growth of memory [message #1796585 is a reply to message #1796345] Tue, 16 October 2018 10:50 Go to previous messageGo to next message
Marco Noto is currently offline Marco NotoFriend
Messages: 10
Registered: November 2017
Location: Turin
Junior Member
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

kura_3.2.0_raspberry-pi-2

We use some custom ConfigurableComponent, (like signal filter), and custom pubisher (in order to modify the output message) but we are reasonably sure that we have not created code that can generate memory leaks.


  • Attachment: Cattura.JPG
    (Size: 47.40KB, Downloaded 92 times)
Re: Constant growth of memory [message #1796601 is a reply to message #1796585] Tue, 16 October 2018 12:28 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
I would suggest to experiment with a clean Kura.
It's difficult to understand the cause, if you are using also custom modules.
To try to identify the root cause you can also use a profiler.

Best regards,
Matteo
Re: Constant growth of memory [message #1796629 is a reply to message #1796601] Tue, 16 October 2018 15:49 Go to previous messageGo to next message
Marco Noto is currently offline Marco NotoFriend
Messages: 10
Registered: November 2017
Location: Turin
Junior Member
Yes, we are analyzing the memory dump with MemoryAnalyzer, thank you Matteo.
Re: Constant growth of memory [message #1797028 is a reply to message #1796629] Wed, 24 October 2018 09:48 Go to previous messageGo to next message
Marco Noto is currently offline Marco NotoFriend
Messages: 10
Registered: November 2017
Location: Turin
Junior Member
We found out that this could be a bug from old versions of the linux kernel used in join with JVM: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1655842
We updated the distribution to Raspbian GNU/Linux 9 (stretch) and the kernel to 4.9.59-v7+, and we solved.

Re: Constant growth of memory [message #1797032 is a reply to message #1797028] Wed, 24 October 2018 10:00 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
thank you for the update
Previous Topic:Deployment package plugins already installed
Next Topic:Generate dp file
Goto Forum:
  


Current Time: Sat May 04 11:14:51 GMT 2024

Powered by FUDForum. Page generated in 0.03714 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top