Coder Social home page Coder Social logo

Memleak about coraza-spoa HOT 6 CLOSED

corazawaf avatar corazawaf commented on June 1, 2024
Memleak

from coraza-spoa.

Comments (6)

sts avatar sts commented on June 1, 2024 1

I would leave it as it is, I don't think this is going to pop up any more after fixing the documentation and would rather not introduce a breaking change for this. In the end there are many examples of applications which wouldn't add a unit into a settings name.

from coraza-spoa.

jcchavezs avatar jcchavezs commented on June 1, 2024

I think we check if the problem is still there after upgrading coraza to latest cc @jptosso

from coraza-spoa.

jptosso avatar jptosso commented on June 1, 2024

I think this is related to the cache service used to share transactions between requests and response. The GC should eventually clean this. I will take a look.
If the transaction is processed for request and response it gets automatically cleaned. Otherwise you must wait for ttl

from coraza-spoa.

sts avatar sts commented on June 1, 2024

The comment in the default configuration was incorrect. The transaction_ttl setting is in seconds rather than milliseconds. In the user provided configuration, the transactions are cached for 60000 seconds.

This setting should match the sum of timeout connect + timeout queue + timeout server) in haproxy.

The following graph illustrates the memory usage when the ttl is set to 10 seconds.

image (from slack)

from coraza-spoa.

jcchavezs avatar jcchavezs commented on June 1, 2024

from coraza-spoa.

jptosso avatar jptosso commented on June 1, 2024

Is the name of the setting transaction_ttl something we control? If so, I
think we should change it into something like transaction_ttl_in_secs or
something like that and make it explicit.

On Sat, 31 Dec 2022, 09:56 Stefan Schlesinger, @.***>
wrote:

Closed #40 #40 as
completed.


Reply to this email directly, view it on GitHub
#40 (comment), or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAUTVPBDX7SMFZRHGFLWP7YNPANCNFSM6AAAAAASLD77OI
.
You are receiving this because you commented.Message ID:
@.***>

Yes we do, let's change it

from coraza-spoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.