You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <st...@labeo.de> on 2005/08/29 21:01:46 UTC
Minumum/recommended J2SE version for Apache DS
Hi all!
Currently I finish the ApacheDS paragraph in the 2dn edition of my LDAP
little German book for Java developers
(http://www.entwickler.com/buecher/ldap/, 1st edition), and I asked
myself, which J2SE is minumum for running the server. Due to new IO I
would guess it is 1.4, and I successfully started the server on that
version. The Mina Wiki states SSL support uses 1.5 functionality
(javax.net.ssl.SSLEngine), which would lead to a higher version
reqirement, if we would support ldaps that way.
What should I tell my readers? Take into account, that the book, once
printed, can't be changed. So if think JSE 5 will be mandatory in the
medium term, it is also an option just to say "it needs J(2)SE".
Thanks in advance for a statement here,
Stefan
Performance of ApacheDS versus OpenLdap. Take 2
Posted by Emmanuel Lecharny <el...@apache.org>.
Ok, then, I re-tested both system, but I minimized JMeter console to
avoid Swing to sucks all the CPU (Previously, I was looking at this
superb aggregate report while testing).
The results are quite different. My System CPU goes up to 12%. Now,
OpenLdap is faster than ApacheDS.
NB : Please, PLEASE, do NOT take those tests as valuable comparison of
both products. It's just a very first test, on a single computer, with
ApacheDS running into Eclipse, and many many other biases. These are
just numbers ;)
"Get the facts first. You can distort them later." Mark Twain.
Emmanuel.
Jmeter
masked
1
thread, launched 2000 times. Bind, Search and UnBind
ApacheDS
CPU=
100%
Request
#sample
Average
Median
90%
line
Min
Max
Error
%
Throughput
KB/sec
Bind
2000
4
2
3
1
191
0.00%
120.4/sec
23,64
Search
2000
1
2
3
1
184
0.00%
120.5/sec
42,82
UnBind
2000
0
0
1
0
4
0.00%
120.5/sec
24,47
TOTAL
6000
2
2
2
0
191
0.00%
361.3/sec
90,91
OpenLdap
CPU=100%
Request
#sample
Average
Median
90%
line
Min
Max
Error
%
Throughput
KB/sec
Bind
2000
3
1
2
1
477
0.00%
165.8/sec
33,52
Search
2000
0
0
1
0
189
0.00%
165.9/sec
58,47
UnBind
2000
0
0
1
0
85
0.00%
165.9/sec
33,69
TOTAL
6000
1
1
1
0
477
0.00%
497.5/sec
125,67
5
threads, launched 400 times. Bind, Search and UnBind
ApacheDS
CPU=
100%
Request
#sample
Average
Median
90%
line
Min
Max
Error
%
Throughput
KB/sec
Bind
2000
27
14
39
1
330
0.00%
143.2/sec
28,11
Search
2000
3
2
7
1
408
0.00%
143.6/sec
51,06
UnBind
2000
0
0
1
0
12
0.00%
143.6/sec
29,18
TOTAL
6000
10
2
24
0
408
0.00%
429.5/sec
108,08
OpenLdap
CPU=100%
Request
#sample
Average
Median
90%
line
Min
Max
Error
%
Throughput
KB/sec
Bind
2000
17
7
9
3
478
0.00%
181.3/sec
36,64
Search
2000
7
3
4
1
474
0.00%
181.4/sec
63,94
UnBind
2000
0
0
0
0
10
0.00%
181.4/sec
36,85
TOTAL
6000
8
3
8
0
478
0.00%
543.7/sec
137,35
Re: Performance of ApacheDS versus OpenLdap. First results!
Posted by Emmanuel Lecharny <el...@apache.org>.
On Mon, 2005-08-29 at 15:26 -0600, David Boreham wrote:
>
> >
> > This is just plain normal. As they are sequential, what is counted is
> > the throughput of the sequence B-S-U. The Total number is worthless, I
> > think.
> >
> Ah, perhaps now I understand. It may be that you are measuring the
> performance of the OS'es TCP implementation rather than the LDAP
> servers ;)
Ooops, yes, you are right ! I always test the TCP stack through a
limited test of ApacheDS (and sometime I do the same with
Databases) ! ;-] eh eh eh
>
> If the test makes a connection, then performs bind/search/unbind
> (which
> will disconnect), then the overwhelming proportion of the effort to
> handle the load
> goes in setting up and tearing down the TCP connection. This would
> also
> explain why the figures are similar.
>
> Did you monitor the proportion of kernel to user time on the test
> machine ?
> High kernel time (>15%) would tend to indicate an I/O-limited test.
6% system. Which is kind of high...
Ok, ok. Do not push this test too far. It's not realistic. It's just a
kind of baby test (very very young ! It's just one cell, actually, and
it will divide soon to two cells, then 4, then ...)
Call it very premature ;)
Nevertheless, I like those results !
Emmanuel
Re: Performance of ApacheDS versus OpenLdap. First results!
Posted by David Boreham <da...@bozemanpass.com>.
>
>This is just plain normal. As they are sequential, what is counted is
>the throughput of the sequence B-S-U. The Total number is worthless, I
>think.
>
>
Ah, perhaps now I understand. It may be that you are measuring the
performance of the OS'es TCP implementation rather than the LDAP servers ;)
If the test makes a connection, then performs bind/search/unbind (which
will disconnect), then the overwhelming proportion of the effort to
handle the load
goes in setting up and tearing down the TCP connection. This would also
explain why the figures are similar.
Did you monitor the proportion of kernel to user time on the test machine ?
High kernel time (>15%) would tend to indicate an I/O-limited test.
Re: Performance of ApacheDS versus OpenLdap. First results!
Posted by Emmanuel Lecharny <el...@apache.org>.
On Mon, 2005-08-29 at 15:03 -0600, David Boreham wrote:
> I have a suspicion that your figures may not be right.
>
> Is it possible that you're actually measuring the performance of the
> test client ?
I'm using Jmeter to do the tests. It really sends requests to the
server, I bet.
>
> I know that I've seen nearly 10,000 searches/s from OL.
My computer is a little bit loaded at the moment ;) And as I'm just
doing a very simplistic bind/search/unbind request, it's not really a
search test.
>
> It's a little strange that the ApacheDS and OL numbers are almost
> exactly the same too.
you mean apacheds ~ openldap? or that we have the same values in the
Throuhput column?
>
> Also strange that binds and unbinds are done with exactly
> the same throughput as searches.
This is just plain normal. As they are sequential, what is counted is
the throughput of the sequence B-S-U. The Total number is worthless, I
think.
>
> Perhaps I'm not reading the table correctly : I'm looking
> at the 'throughput' column.
This is the good column, but just forget about the Total Throughput.
However, do NOT take this test as something serious ;) This is just a
little test I did to help us keeping the good pace. We have a pretty
fast Ldap Server, which need a LOT of work to be production-ready.
Sometime we also need some good marks ;)
Re: Performance of ApacheDS versus OpenLdap. First results!
Posted by David Boreham <da...@bozemanpass.com>.
I have a suspicion that your figures may not be right.
Is it possible that you're actually measuring the performance of the
test client ?
I know that I've seen nearly 10,000 searches/s from OL.
It's a little strange that the ApacheDS and OL numbers are almost
exactly the same too.
Also strange that binds and unbinds are done with exactly
the same throughput as searches.
Perhaps I'm not reading the table correctly : I'm looking
at the 'throughput' column.
Performance of ApacheDS versus OpenLdap. First results!
Posted by Emmanuel Lecharny <el...@apache.org>.
Thanks to JMeter !
1
thread,
launched 1000 times. Bind, Search and UnBind
ApacheDS
CPU=
100%
Request
#sample
Average
Median
90%
line
Min
Max
Error %
Throughput
KB/sec
Bind
1000
4
2
3
1
191
0.00%
41.1/sec
8,06
Search
1000
3
2
3
1
184
0.00%
41.1/sec
14,6
UnBind
1000
0
1
1
0
185
0.00%
41.1/sec
8,34
TOTAL
3000
2
2
2
0
191
0.00%
123.2/sec
30,99
OpenLdap
CPU=100%
Request
#sample
Average
Median
90%
line
Min
Max
Error %
Throughput
KB/sec
Bind
1000
4
2
3
1
211
0.00%
47.6/sec
9,63
Search
1000
1
1
2
0
182
0.00%
47.6/sec
16,79
UnBind
1000
0
0
2
0
7
0.00%
47.6/sec
9,68
TOTAL
3000
2
1
3
0
211
0.00%
142.9/sec
36,09
5
threads, launched 200 times. Bind, Search and UnBind
ApacheDS
CPU=
100%
Request
#sample
Average
Median
90%
line
Min
Max
Error %
Throughput
KB/sec
Bind
1000
65
29
218
2
777
0.00%
57.7/sec
11,32
Search
1000
9
6
14
1
339
0.00%
57.7/sec
20,51
UnBind
1000
1
1
3
0
34
0.00%
57.7/sec
11,72
TOTAL
3000
25
6
53
0
777
0.00%
172.9/sec
43,51
OpenLdap
CPU=100%
Request
#sample
Average
Median
90%
line
Min
Max
Error %
Throughput
KB/sec
Bind
1000
58
28
206
13
244
0.00%
53.2/sec
10,76
Search
1000
25
11
18
3
229
0.00%
52.7/sec
18,59
UnBind
1000
0
0
2
0
184
0.00%
52.8/sec
10,72
TOTAL
3000
28
11
31
0
244
0.00%
158/sec
39,92
Re: Minumum/recommended J2SE version for Apache DS
Posted by Alex Karasulu <ao...@bellsouth.net>.
Stefan Zoerner wrote:
> Hi all!
>
> Currently I finish the ApacheDS paragraph in the 2dn edition of my
> LDAP little German book for Java developers
> (http://www.entwickler.com/buecher/ldap/, 1st edition), and I asked
> myself, which J2SE is minumum for running the server. Due to new IO I
> would guess it is 1.4, and I successfully started the server on that
> version. The Mina Wiki states SSL support uses 1.5 functionality
> (javax.net.ssl.SSLEngine), which would lead to a higher version
> reqirement, if we would support ldaps that way.
>
> What should I tell my readers? Take into account, that the book, once
> printed, can't be changed. So if think JSE 5 will be mandatory in the
> medium term, it is also an option just to say "it needs J(2)SE".
>
Tell them for LDAP they need 1.4 at a bare minimum. For LDAPS they will
need 1.5.
Alex