Skip to content

Hinzufügen einer Speicherüberwachung - #2

Merged
TillBrede merged 7 commits into
masterfrom
feature/memory-tracking
Nov 10, 2026
Merged

TillBrede merged 7 commits into
masterfrom
feature/memory-tracking

Conversation

@Sunnyka98

Copy link
Copy Markdown
Contributor
  • Wenn die OIDLib einen zu großen Buffer erzeugt, wird der Walk abgebrochen und ein PopupAlert angezeigt und keine OIDs.
  • Während des Walks wird geprüft ob weniger als 80% des Speichers genutzt wird. Wenn mehr genutzt wird, bricht der Walk ab, schreibt aber die OIDs in die Liste.
  • Da die OIDs aus der Lib teilweise ungeordnet auftauchen, kann der Walk nicht verkürzt werden.

close https://github.com/symcon/modules/issues/243

@Sunnyka98
Sunnyka98 requested a review from paresy June 29, 2023 08:56
@TillBrede

Copy link
Copy Markdown
Contributor

Funktional sieht alles gut aus.
Das Verhalten bei hoher Speicherauslastung kann ich leider nicht testen. Habe in der php.ini das memory_limit auf die minimalen 8M runter gesetzt.
Den Dialog könnte man, nachdem alles gefunden wurde, noch etwas aufhübschen.
image
%d OIDs in the list wird noch nicht richtig übersetzt.

@Sunnyka98

Copy link
Copy Markdown
Contributor Author

@TillBrede
Wie meinst du das mit aufhübschen? Ich hab den Text jetzt mal am Ende geändert, reicht das?

Comment thread SNMP/form.json Resolved
@paresy paresy assigned paresy and Sunnyka98 and unassigned paresy Apr 2, 2025
@Sunnyka98
Sunnyka98 requested a review from TillBrede June 30, 2025 07:02
- Stop the walk at 80 % of the memory limit including the size needed to
  encode the list, and show a message when that happens
- Reset progress bar and cancel button at the start of a walk and always
  stop the bar when the walk ends (finished, cancelled or failed)
- Show connection errors in the progress bar
- Abort the walk if the OIDLib cache exceeds 1 MB instead of storing it
- Only cache OIDs below the start OID (no partial prefix matches)
- Clear the OID cache when all OIDLibs are removed
- Fix Writeable/Writable key mismatch so writable variables get an action
- Simplify memory_limit parsing and fix "Too many" typo
@TillBrede
TillBrede merged commit c54b71d into master Nov 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants