Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug1067 v1.1 #747

Closed
wants to merge 3 commits into from
Closed

Bug1067 v1.1 #747

wants to merge 3 commits into from

Conversation

regit
Copy link
Contributor

@regit regit commented Dec 31, 2013

Here's an implementation of HTTP memcap. It puts a memcap on all allocations made for HTP by using dedicated allocation function. Two last commits implements some counters (memuse and memcap hit).

PR builds:

Ticket: https://redmine.openinfosecfoundation.org/issues/1067

This patch introduces wrapper functions around allocation functions
to be able to have a global HTP memcap. A simple subsitution of
function was not enough because allocated size needed to be known
during freeing and reallocation.

The value of the memcap can be set in the YAML and is left by default
to unlimited (0) to avoid any surprise to users.
This patch adds a memory counter for HTP memory usage. As
there is no thread variables available in application layer
the counter has been added to the TCP reassembly thread.
This patch adds a memcap counter for HTP memory usage. Counter
is increased each time an allocation is not done due to the memcap.
@inliniac inliniac mentioned this pull request Jan 10, 2014
@inliniac
Copy link
Contributor

Merged through #758

@inliniac inliniac closed this Jan 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants