Jan 12 05:36:25 s1 kernel: md: md0: data-check done.
Jan 12 05:36:25 s1 kernel: md: data-check of RAID array md1
Jan 12 05:36:25 s1 kernel: md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
Jan 12 05:36:25 s1 kernel: md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Jan 12 05:36:25 s1 kernel: md: using 128k window, over a total of 8387576k.
Jan 12 05:37:50 s1 kernel: md: md1: data-check done.
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
{
Image im( "01.png");
cout << "Content-type: image/png\n\n";
im.write("png:-"); //Подсказали на этом сайте
return 0;
}
Необходимо преписать под FastCGI, пробую:
#include <Magick++.h>
#include <fcgi_stdio.h>
using namespace Magick;
int main (int argc, char **argv)
{
while (FCGI_Accept() >= 0) {
Image im( "01.png");
printf("Content-type: image/png\n\n");
im.write("png:-");
}
return 0;
}
Выводит в браузер битую картинку.
Помогите разобраться, спасибо.
Document Path: /cgi-bin/hello.cgi
Document Length: 13 bytes
Concurrency Level: 1
Time taken for tests: 2.283029 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 13240 bytes
HTML transferred: 1300 bytes
Requests per second: 43.80 [#/sec] (mean)
Time per request: 22.830 [ms] (mean)
Time per request: 22.830 [ms] (mean, across all concurrent requests)
Transfer rate: 5.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 20 22 1.5 22 26
Waiting: 19 22 1.5 22 26
Total: 20 22 1.5 22 26
Percentage of the requests served within a certain time (ms)
50% 22
66% 23
75% 23
80% 24
90% 24
95% 24
98% 24
99% 26
100% 26 (longest request)
Document Path: /hello.php
Document Length: 12 bytes
Concurrency Level: 1
Time taken for tests: 0.71696 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 14700 bytes
HTML transferred: 1200 bytes
Requests per second: 1394.78 [#/sec] (mean)
Time per request: 0.717 [ms] (mean)
Time per request: 0.717 [ms] (mean, across all concurrent requests)
Transfer rate: 195.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.2 0 1
Waiting: 0 0 0.1 0 1
Total: 0 0 0.2 0 1
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 1
99% 1
100% 1 (longest request)
Nginx -> Apache 2 + mod_cgi
Для PHP стоит eAccelerator
Что не так? Почему скомпилированная cgi программа работат медленее?
Помогите разобраться, спасибо!
Добрый день,
есть задача: необходимо нанести текст (определенным шрифтом) на изображение (png) и выводить его в браузер (cgi-приложение).
Какую посоветуете библиотеку для этих целей?