Hey everyone. I hope this is a proper place to ask for help. So we're 
having massive performance issues where our CMS got relly good loading 
times using curl, but as user just using the cms we having peak times which 
are 3-10 times slower. Peak times doesn't mean when many people are using 
the system. I have the same issue when I'm the only one using the system. 
So I wanted to profile what takes so long.

My Apache got a pretty default httpd.conf which includes 2 vhost.conf 
files. I tried multiple configurations but I can't get NYTProf running 
properly so I just share the current state:

I added the following lines into my vhost1.conf file:
PerlSetEnv NYTPROF file=/HAimperia/nytprof.out:addpid=0:endatexit=1
<Perl>
    use Devel::NYTProf::Apache;
</Perl>

<IfDefine NYTPROF>
    MaxClients 1
    MaxRequestsPerChild 0
    PerlModule Devel::NYTProf::Apache
</IfDefine>
I started the apache and everything seems fine. There are files created in 
/HAimperia/. I click once in the CMS and I stop the apache.
root@localhost /HAimperia # l
total 55M
drwxrwxr-x.  4 webag webag   119 Mar 11 09:11 .
dr-xr-xr-x. 21 root  root    283 Oct  4 10:54 ..
drwxrwxr-x.  1 webag apache  384 Oct 22 13:53 apache-develop
drwxrwxr-x.  5 webag webag    47 Oct  1 10:20 apache-live
-rw-r--r--.  1 root  root   271K Mar 11 09:11 nytprof.out.5333
-rw-r--r--.  1 webag apache  12M Mar 11 09:11 nytprof.out.5336
-rw-r--r--.  1 webag apache  43M Mar 11 09:11 nytprof.out.5337
root@localhost /HAimperia # nytprofhtml nytprof.out.5333
Reading nytprof.out
Failed to open input 'nytprof.out': No such file or directory at 
/usr/local/lib64/perl5/Devel/NYTProf/Data.pm line 87.
✘ root@localhost /HAimperia # nytprofhtml -f nytprof.out.5333
Reading nytprof.out.5333
Profile format error: token 109 ('m'), chunk 948, pos 27312 (see 
TROUBLESHOOTING in NYTProf docs) at 
/usr/local/lib64/perl5/Devel/NYTProf/Data.pm line 87.
✘ root@localhost /HAimperia # nytprofmerge -o ouput.txt nytprof.out.*
Reading nytprof.out.5333
Profile format error: token 109 ('m'), chunk 948, pos 27312 (see 
TROUBLESHOOTING in NYTProf docs) at 
/usr/local/lib64/perl5/Devel/NYTProf/Data.pm line 87.
✘ root@localhost /HAimperia # 

1) Why does I still get multiple files even with addpid=0? I assumed 
without addpid it would store all in one file.
2) neither nytprofhtml nor nytprofmerge works for me.

Am I doing something wrong? I appreciate every kind of help and advice.
Thank you in advance.
Regards, Mike.

-- 
-- 
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Devel::NYTProf Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/develnytprof-dev/18e50958-da1a-47a4-8c58-664d93d88d4f%40googlegroups.com.

Reply via email to