Skip to main content



      Home
Home » Eclipse Projects » Kura » Constant growth of memory
Constant growth of memory [message #1796345] Thu, 11 October 2018 07:02 Go to next message
Eclipse UserFriend
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 03:03 Go to previous messageGo to next message
Eclipse UserFriend
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 06:50 Go to previous messageGo to next message
Eclipse UserFriend
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 127 times)
Re: Constant growth of memory [message #1796601 is a reply to message #1796585] Tue, 16 October 2018 08:28 Go to previous messageGo to next message
Eclipse UserFriend
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 11:49 Go to previous messageGo to next message
Eclipse UserFriend
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 05:48 Go to previous messageGo to next message
Eclipse UserFriend
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 06:00 Go to previous message
Eclipse UserFriend
thank you for the update
Previous Topic:Deployment package plugins already installed
Next Topic:Generate dp file
Goto Forum:
  


Current Time: Mon Jun 16 09:53:46 EDT 2025

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

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

Back to the top