memory-leak 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/lib/memory/leak/monitor.rb +1 -6
- data/lib/memory/leak/version.rb +1 -1
- data/readme.md +4 -0
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce86ec1f5824a2cafd31ca3765df1967fa8d2226ef88e0479cf0fca07df91cb9
|
|
4
|
+
data.tar.gz: 3bcaf2a418112277e98de7f81bc7991fedf14e475e9e0801e9a962a567db31aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dd4aba9d1e9d835697c809540d28c72ccb2eb901993ec967621740293bf37fd7b20d3d8daf1641dde087d90539b51f63ad8f2bc194d0c0d4a98664ed64f5d1e
|
|
7
|
+
data.tar.gz: 3a0a336dbfb32bc00d904519ccef29f38c3a10398b1dc17c6f4cc98860e02b7740e5903dbfc1507f371e70d83750ae067e83e004bd2049264bff21be10159a66
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
�KdE�K�W��L�Y����o�~V'��GlL���Ʃ.���v���v �6��>)�~��r�@��Z���[#����j�5����c]�����R���B-��+;�5�{fye_�f#�
|
|
2
|
+
���IȠ��H0�)�Z��_ۥ��Z�\�R eTH��c���&��Ò�T&���]�h�h>�o�.@�@���D��'@�c�g�b/�}'���JG ��g����V����`*7�r0G�Z
|
|
3
|
+
��O�m���ڷ�7J�B����L��������ÈK�c�J,ֶ��h��X��7vl���I������.����/�ވ1��r�1�}�E�֝��x��}��BW��bXݹ�"�}����^��cw�@�d�rI<�R�};�
|
data/lib/memory/leak/monitor.rb
CHANGED
|
@@ -18,11 +18,6 @@ module Memory
|
|
|
18
18
|
# True memory leaks will eventually hit this threshold_size, while small fluctuations will not.
|
|
19
19
|
DEFAULT_THRESHOLD_SIZE = 1024*1024*10
|
|
20
20
|
|
|
21
|
-
# We track the last N process size increases.
|
|
22
|
-
# If the process size is not stabilizing within the specified increase_limit, we can assume there is a leak.
|
|
23
|
-
# With a default interval of 10 seconds, this will track the last ~3 minutes of process size increases.
|
|
24
|
-
DEFAULT_INCREASE_LIMIT = 20
|
|
25
|
-
|
|
26
21
|
# Create a new monitor.
|
|
27
22
|
#
|
|
28
23
|
# @parameter process_id [Integer] The process ID to monitor.
|
|
@@ -30,7 +25,7 @@ module Memory
|
|
|
30
25
|
# @parameter maximum_size_limit [Numeric | Nil] The maximum process size allowed, in bytes, before we assume a memory leak.
|
|
31
26
|
# @parameter threshold_size [Numeric] The threshold for process size increases, in bytes.
|
|
32
27
|
# @parameter increase_limit [Numeric] The limit for the number of process size increases, before we assume a memory leak.
|
|
33
|
-
def initialize(process_id = Process.pid, maximum_size: nil, maximum_size_limit: nil, threshold_size: DEFAULT_THRESHOLD_SIZE, increase_limit:
|
|
28
|
+
def initialize(process_id = Process.pid, maximum_size: nil, maximum_size_limit: nil, threshold_size: DEFAULT_THRESHOLD_SIZE, increase_limit: nil)
|
|
34
29
|
@process_id = process_id
|
|
35
30
|
|
|
36
31
|
@sample_count = 0
|
data/lib/memory/leak/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -14,6 +14,10 @@ Please see the [project documentation](https://socketry.github.io/memory-leak/)
|
|
|
14
14
|
|
|
15
15
|
Please see the [project releases](https://socketry.github.io/memory-leak/releases/index) for all releases.
|
|
16
16
|
|
|
17
|
+
### v0.10.2
|
|
18
|
+
|
|
19
|
+
- Disable default `increase_limit: nil`.
|
|
20
|
+
|
|
17
21
|
### v0.10.0
|
|
18
22
|
|
|
19
23
|
- Introduce `free_size_minimum` to monitor minimum free memory size, which can be used to trigger alerts or actions when available memory is critically low.
|
data/releases.md
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|