Giter Club home page Giter Club logo

Comments (8)

mingodad avatar mingodad commented on August 28, 2024

Running this command the program starts with 20MB and when served 5,000,000 requests it's using around 180MB and continue growing but I stopped the program.

echo 1 > 1.txt
./demo asio_httpd

on other console:
httpress -t 2 -n 10000000 -c 2000 -k http://127.0.0.1:8080/1.tx

Cheers !

from tbox.

mingodad avatar mingodad commented on August 28, 2024

Also trying requesting a non existing file is faster to see the memory growing:

httpress -t 2 -n 10000000 -c 2000 -k http://127.0.0.1:8080/xxx.tx

from tbox.

mingodad avatar mingodad commented on August 28, 2024

I also tried with other parameters at demo.c:
if (!tb_init(tb_null, tb_native_allocator())) return 0;
if (!tb_init(tb_null, tb_static_allocator((tb_byte_t*)malloc(300 * 1024 * 1024), 300 * 1024 * 1024))) return 0;

But the same memory consumption pattern happen.

Cheers !

from tbox.

foobar avatar foobar commented on August 28, 2024

can you be more specific on the memory usage? Was it virtual space or RSS?

from tbox.

mingodad avatar mingodad commented on August 28, 2024

Hello !
It's RSS .
Couldn't you reproduce it with the same/similar load test ?

Cheers !

from tbox.

waruqi avatar waruqi commented on August 28, 2024

I will try to fix this problem.

Thanks!

from tbox.

waruqi avatar waruqi commented on August 28, 2024

Hi!

I have fixed this memory issue with commits: 79f496a and a6d6b1f

Thanks!

from tbox.

mingodad avatar mingodad commented on August 28, 2024

Not at all !
Thank you for this great work !

from tbox.

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.