|
From: Branko M. <br...@ma...> - 2014-11-28 15:01:54
|
On Wed, 26 Nov 2014 15:35:24 +0100 "Michael Ströder" <mi...@st...> wrote: > HI! > > I'm having a hard time finding out why sometimes (not always) ejbca.sh is so > damn slow: > > root@vm-ejbca-ocsp-01:~# time /opt/ejbca/bin/ejbca.sh ca --help > [..] > real 0m2.251s > user 0m2.748s > sys 0m0.288s > root@vm-ejbca-ocsp-01:~# time /opt/ejbca/bin/ejbca.sh ca editca --help > [..] > real 0m25.008s > user 0m18.069s > sys 0m0.192s > > I'm looking with strace and tcpdump what's going on. But still nothing obvious. > > Which debug logs should I enable in the JVM? > > BTW: Any reason why using --help requires a running JBOSS? > > Ciao, Michael. > In some cases CLI will try to obtain some values from the CA for display of help, like certificate names, CA names etc. This is the main reason CLI connects to running EJBCA. As for slowness/speed, I've noticed myself that first run of CLI tools after JBoss has been restarted might take a bit more time, while subsequent runs seems to be much faster. One thing to think about would be perhaps reverse DNS (if anything does DNS lookups when using CLI, which I kind of doubt). Best regards -- Branko Majic Jabber: br...@ma... Please use only Free formats when sending attachments to me. Бранко Мајић Џабер: br...@ma... Молим вас да додатке шаљете искључиво у слободним форматима. |