You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Jürgen Weber <ju...@jwi.de> on 2017/09/01 16:40:26 UTC

Re: Ehcache necessary?

Ran some tests with Grinder and repeated a few times. Saw no big
difference, seems to be caused more by the VM warming up than by Wiki
settings.
Wiki on 4 core Linux, 500 pages, Client 4 Processes x 10 runs, each
run reads all pages, so 20000 requests.


Greetings, Juergen

Grinder script from here:
https://github.com/kvalle/grinder-bloggpost/blob/master/post.md#example-2---testing-multiple-urls


jspwiki.usePageCache = true
2017-09-01 18:07:30,189 INFO  esprimo : elapsed time is 96989 ms
2017-09-01 18:11:42,579 INFO  esprimo : elapsed time is 97293 ms
2017-09-01 18:24:39,773 INFO  esprimo : elapsed time is 98262 ms
2017-09-01 18:26:45,058 INFO  esprimo : elapsed time is 79536 ms
2017-09-01 18:28:34,470 INFO  esprimo : elapsed time is 80146 ms

jspwiki.usePageCache = false
2017-09-01 18:14:12,805 INFO  esprimo : elapsed time is 105324 ms
2017-09-01 18:16:53,699 INFO  esprimo : elapsed time is 88305 ms
2017-09-01 18:21:26,055 INFO  esprimo : elapsed time is 87401 ms

jspwiki.renderingManager.useCache = false
2017-09-01 18:31:58,457 INFO  esprimo : elapsed time is 94469 ms
2017-09-01 18:33:56,753 INFO  esprimo : elapsed time is 79983 ms

2017-08-30 17:05 GMT+02:00 Harry Metske <ha...@gmail.com>:
> It would surely be interesting to see what the performance difference would
> be.
>
> We could also ditch CachingProvider then probably?
> And remove some code complexity...
>
> Grtz.
> Harry
>
> Op 29 aug. 2017 12:07 a.m. schreef "Jürgen Weber" <ju...@jwi.de>:
>
>> Hi,
>>
>> ehcache-2.8.3.jar takes about a third of the JSPWiki.war size.
>>
>> Is it worth it?
>>
>> As for Filesystem page providers, the OS filesystem satisfies all caching
>> needs.
>>
>> ehCaching is only useful for DB or the Subversion providers, but who uses
>> them?
>>
>> As for caching rendered pages, this only works for non-dynamic pages
>> (i.e. no CurrentTimePlugin).
>>
>> And I doubt, that even for static wiki pages, caching has an advantage
>> on modern cpus.
>>
>> Greetings,
>> Jürgen
>>

Re: Ehcache necessary?

Posted by Jürgen Weber <ju...@jwi.de>.
Hi Siegried,

again little difference:

jspwiki.usePageCache = true jspwiki.renderingManager.useCache = true

Load 3.9

jspwiki.usePageCache = false jspwiki.renderingManager.useCache = false

Load 4.3

4 CPU machine, values near the end of the test run, checked with top.

Greetings, Juergen

Am 03.09.2017 09:27 schrieb "Siegfried Goeschl" <
siegfried.goeschl@it20one.com>:

> Hi Jürgen,
>
> did you also look at CPU usage?
>
> Thanks in advance,
>
> Siegfried Goeschl
>
>
> > On 1 Sep 2017, at 18:40, Jürgen Weber <ju...@jwi.de> wrote:
> >
> > Ran some tests with Grinder and repeated a few times. Saw no big
> > difference, seems to be caused more by the VM warming up than by Wiki
> > settings.
> > Wiki on 4 core Linux, 500 pages, Client 4 Processes x 10 runs, each
> > run reads all pages, so 20000 requests.
> >
> >
> > Greetings, Juergen
> >
> > Grinder script from here:
> > https://github.com/kvalle/grinder-bloggpost/blob/master/
> post.md#example-2---testing-multiple-urls
> >
> >
> > jspwiki.usePageCache = true
> > 2017-09-01 18:07:30,189 INFO  esprimo : elapsed time is 96989 ms
> > 2017-09-01 18:11:42,579 INFO  esprimo : elapsed time is 97293 ms
> > 2017-09-01 18:24:39,773 INFO  esprimo : elapsed time is 98262 ms
> > 2017-09-01 18:26:45,058 INFO  esprimo : elapsed time is 79536 ms
> > 2017-09-01 18:28:34,470 INFO  esprimo : elapsed time is 80146 ms
> >
> > jspwiki.usePageCache = false
> > 2017-09-01 18:14:12,805 INFO  esprimo : elapsed time is 105324 ms
> > 2017-09-01 18:16:53,699 INFO  esprimo : elapsed time is 88305 ms
> > 2017-09-01 18:21:26,055 INFO  esprimo : elapsed time is 87401 ms
> >
> > jspwiki.renderingManager.useCache = false
> > 2017-09-01 18:31:58,457 INFO  esprimo : elapsed time is 94469 ms
> > 2017-09-01 18:33:56,753 INFO  esprimo : elapsed time is 79983 ms
> >
> > 2017-08-30 17:05 GMT+02:00 Harry Metske <ha...@gmail.com>:
> >> It would surely be interesting to see what the performance difference
> would
> >> be.
> >>
> >> We could also ditch CachingProvider then probably?
> >> And remove some code complexity...
> >>
> >> Grtz.
> >> Harry
> >>
> >> Op 29 aug. 2017 12:07 a.m. schreef "Jürgen Weber" <ju...@jwi.de>:
> >>
> >>> Hi,
> >>>
> >>> ehcache-2.8.3.jar takes about a third of the JSPWiki.war size.
> >>>
> >>> Is it worth it?
> >>>
> >>> As for Filesystem page providers, the OS filesystem satisfies all
> caching
> >>> needs.
> >>>
> >>> ehCaching is only useful for DB or the Subversion providers, but who
> uses
> >>> them?
> >>>
> >>> As for caching rendered pages, this only works for non-dynamic pages
> >>> (i.e. no CurrentTimePlugin).
> >>>
> >>> And I doubt, that even for static wiki pages, caching has an advantage
> >>> on modern cpus.
> >>>
> >>> Greetings,
> >>> Jürgen
> >>>
>
>

Re: Ehcache necessary?

Posted by Siegfried Goeschl <si...@it20one.com>.
Hi Jürgen,

did you also look at CPU usage? 

Thanks in advance,

Siegfried Goeschl


> On 1 Sep 2017, at 18:40, Jürgen Weber <ju...@jwi.de> wrote:
> 
> Ran some tests with Grinder and repeated a few times. Saw no big
> difference, seems to be caused more by the VM warming up than by Wiki
> settings.
> Wiki on 4 core Linux, 500 pages, Client 4 Processes x 10 runs, each
> run reads all pages, so 20000 requests.
> 
> 
> Greetings, Juergen
> 
> Grinder script from here:
> https://github.com/kvalle/grinder-bloggpost/blob/master/post.md#example-2---testing-multiple-urls
> 
> 
> jspwiki.usePageCache = true
> 2017-09-01 18:07:30,189 INFO  esprimo : elapsed time is 96989 ms
> 2017-09-01 18:11:42,579 INFO  esprimo : elapsed time is 97293 ms
> 2017-09-01 18:24:39,773 INFO  esprimo : elapsed time is 98262 ms
> 2017-09-01 18:26:45,058 INFO  esprimo : elapsed time is 79536 ms
> 2017-09-01 18:28:34,470 INFO  esprimo : elapsed time is 80146 ms
> 
> jspwiki.usePageCache = false
> 2017-09-01 18:14:12,805 INFO  esprimo : elapsed time is 105324 ms
> 2017-09-01 18:16:53,699 INFO  esprimo : elapsed time is 88305 ms
> 2017-09-01 18:21:26,055 INFO  esprimo : elapsed time is 87401 ms
> 
> jspwiki.renderingManager.useCache = false
> 2017-09-01 18:31:58,457 INFO  esprimo : elapsed time is 94469 ms
> 2017-09-01 18:33:56,753 INFO  esprimo : elapsed time is 79983 ms
> 
> 2017-08-30 17:05 GMT+02:00 Harry Metske <ha...@gmail.com>:
>> It would surely be interesting to see what the performance difference would
>> be.
>> 
>> We could also ditch CachingProvider then probably?
>> And remove some code complexity...
>> 
>> Grtz.
>> Harry
>> 
>> Op 29 aug. 2017 12:07 a.m. schreef "Jürgen Weber" <ju...@jwi.de>:
>> 
>>> Hi,
>>> 
>>> ehcache-2.8.3.jar takes about a third of the JSPWiki.war size.
>>> 
>>> Is it worth it?
>>> 
>>> As for Filesystem page providers, the OS filesystem satisfies all caching
>>> needs.
>>> 
>>> ehCaching is only useful for DB or the Subversion providers, but who uses
>>> them?
>>> 
>>> As for caching rendered pages, this only works for non-dynamic pages
>>> (i.e. no CurrentTimePlugin).
>>> 
>>> And I doubt, that even for static wiki pages, caching has an advantage
>>> on modern cpus.
>>> 
>>> Greetings,
>>> Jürgen
>>>