RejectedSoftware Forums

Sign up

long responses for vibe.d in 0.1 % requests

Hi, i've got vibe.d base web-server serving requests. load-tests showed, that there is some responses (spikes) taking long time comparing to others.

It is very annoying cause i need in some sense soft realtime, every request should be handled within certain time.

does anyone encounter / suffer from this problem? could anyone suggest something?

as far as I understand this spikes caused by GC work, am I right?

also thus spikes increased under load.

some stat:

================ 50 clients ================
test time: 57245.1526601
segments total: 11451734
segments failed: 1
total size : 3031263.71 Mb
throughput : 423.62 Mbps
mean : 0.24991006095
stdev: 0.360783366533
max  : 63.3049139977
10% <= 0.0696449279785
20% <= 0.0981018543243
30% <= 0.123034572601
40% <= 0.147686958313
50% <= 0.173866987228
60% <= 0.203374147415
70% <= 0.238434076309
80% <= 0.284301996231
90% <= 0.374791717529
95% <= 0.670448684692
98% <= 1.25154209137
99% <= 1.57454739571
99.9% <= 3.38914193058
100% <= 63.3049139977
done


================ 10 threads ================
test time: 57178.9475391
segments total: 6718593
segments failed: 0
segments downloaded: 6718593 (in 10 threads)
total size : 1736815.64 Mb
throughput : 243.00 Mbps
mean : 0.0850894182896
stdev: 0.24370346615
max  : 18.3986477852
10% <= 0.0177390575409
20% <= 0.0237650871277
30% <= 0.0293939113617
40% <= 0.0352969169617
50% <= 0.0418431758881
60% <= 0.0493528842926
70% <= 0.0583369731903
80% <= 0.0720181465149
90% <= 0.107677221298
95% <= 0.250077390671
98% <= 0.634942512512
99% <= 1.09125039101
99.9% <= 3.30648022842
100% <= 18.3986477852
done

Re: long responses for vibe.d in 0.1 % requests

On Tue, 13 Jan 2015 12:25:09 GMT, theambient wrote:

as far as I understand this spikes caused by GC work, am I right?

Most likely.
You might be interested in http://vibed.org/docs#compile-time-configuration (esp. VibeManualMemoryManagement and VibeIdleCollect ).