www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - The reason of vibed slow down (request timeout)

reply Suliman <evermind live.ru> writes:
I have simple web-app. Server part is based on vibed

http://194.87.235.42:8080/

I can't understand the reason of issue. after some days of work 
when I trying to open it in web-browser it's begin opening very 
slooowly, or like now does not opens at all. On mobile 
web-browser I am getting request-timeout.

How I can diagnostic the reason of such behavior?

The sources code is here https://github.com/bubnenkoff/Geoportal2
Feb 02
parent reply Suliman <evermind live.ru> writes:
If I open it's from VPS (as localhost:8080) it's work same as 
from Internet (no do not open at all).
Feb 02
next sibling parent reply crimaniak <crimaniak gmail.com> writes:
On Friday, 3 February 2017 at 06:46:37 UTC, Suliman wrote:
 If I open it's from VPS (as localhost:8080) it's work same as 
 from Internet (no do not open at all).
If problem is reproducible on localhost - very good, just debug it. If you have memory leak and can't figure out source, try valgrind tool - it can help. P.S. Русские комментарии в коде - плохой стиль.
Feb 02
parent Suliman <evermind live.ru> writes:
On Friday, 3 February 2017 at 07:44:15 UTC, crimaniak wrote:
 On Friday, 3 February 2017 at 06:46:37 UTC, Suliman wrote:
 If I open it's from VPS (as localhost:8080) it's work same as 
 from Internet (no do not open at all).
If problem is reproducible on localhost - very good, just debug it. If you have memory leak and can't figure out source, try valgrind tool - it can help. P.S. Русские комментарии в коде - плохой стиль.
This tool is nix only. I checked memory footprint, and it's show that app use impossible low memory http://3.1m.yt/cCdzA.png I reread sources and still don't understand where it can be problem place.
Feb 04
prev sibling parent aberba <karabutaworld gmail.com> writes:
On Friday, 3 February 2017 at 06:46:37 UTC, Suliman wrote:
 If I open it's from VPS (as localhost:8080) it's work same as 
 from Internet (no do not open at all).
One this I may suggest is the port if its used already (8080). Try to use; import std.process: environment; settings.port = environment.get("PORT", "8080").to!short;
Feb 03