You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Gary Kephart <ga...@pobox.com> on 2021/12/22 20:21:57 UTC
suggestions for a long loading page
I have a page that takes over 30 seconds to load. I've no doubt that
this is due to the 2200+ page links it has in it. It seems as though
there's still something that I could do to decrease that time.
I have "jspwiki.usePageCache = true" in my jspwiki-custom.properties.
I have tried to use ReferringPagesPlugin and tagging sets of the
referenced pages together using categories, like "Category A Character"
and "Category B Character". That would reduce the page to just 26 calls
to the ReferringPagesPlugin. But when adding 3-4 of those, it seemed to
make the page loading even longer.
Here's the page:
https://encyclopaedia-wot.org/Wiki.jsp?page=Characters%2C%20Aliases%20%26%20Nicknames
Any ideas?
Gary
--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart
"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.
Re: suggestions for a long loading page
Posted by Gary Kephart <ga...@pobox.com>.
Juan Pablo,
Thanks for recommending the change in cache size. Our site has ~4100
pages, and so I set it for 5000, allowing for future growth. The page
loads just fine now.
As a note, I plan on tagging pages with Categories and using
ReferringPagesPlugin much more in the future. With all the organizations
and groups listed on our site, it's just easier to tag the group members
than to remember to add them to the group's page so that they get
automatically listed there.
Thanks,
Gary
On 12/23/2021 6:25 AM, Juan Pablo Santos Rodríguez wrote:
> Hi Gary,
>
> been doing some more tests. I've noticed that that page has a call to
> the ReferringPagesPlugin, would you mind removing that line and seeing
> if that speeds up the page load? I've set up a page with the same wiki
> markup on a local wiki, and renders faster than what you're
> experiencing, about 300ms. The ReferringPagesPlugin relies on the
> ReferenceManager, which does a big amount of use of synchronized
> methods, so if you're having a lot of people coming in, it may slow
> down things. Also, I suspect that your cache may be full, so the page
> may getting re-rendered every time and again, affecting page load
> time.
>
>
> regards,
> juan pablo
>
> On Thu, Dec 23, 2021 at 12:09 AM Juan Pablo Santos Rodríguez
> <ju...@gmail.com> wrote:
>> Hi Gary,
>>
>> Don't have the source in front of me right now, so mostly a hunch: looking at your systeminfo page, cache hits vs misses is 5.4M vs 3.6M. That seems to me like too many misses...
>>
>> Default cache configuration is for a thousand elements for each cache, so given the amount of pages may be tweaking the cache configuration is the way to go?
>>
>> Latest release allows to provide a custom ehcache file (please see changelog file for details). If you're not on latest you'll have to manually edit the file (IIRC, it is on the jspwiki-main jar, but I'm not completely sure right now).
>>
>>
>> HTH,
>> juan pablo
>>
>> El mié., 22 dic. 2021 21:22, Gary Kephart <ga...@pobox.com> escribió:
>>>
>>> I have a page that takes over 30 seconds to load. I've no doubt that
>>> this is due to the 2200+ page links it has in it. It seems as though
>>> there's still something that I could do to decrease that time.
>>>
>>> I have "jspwiki.usePageCache = true" in my jspwiki-custom.properties.
>>>
>>> I have tried to use ReferringPagesPlugin and tagging sets of the
>>> referenced pages together using categories, like "Category A Character"
>>> and "Category B Character". That would reduce the page to just 26 calls
>>> to the ReferringPagesPlugin. But when adding 3-4 of those, it seemed to
>>> make the page loading even longer.
>>>
>>> Here's the page:
>>>
>>> https://encyclopaedia-wot.org/Wiki.jsp?page=Characters%2C%20Aliases%20%26%20Nicknames
>>>
>>>
>>> Any ideas?
>>>
>>>
>>> Gary
>>>
>>> --
>>> Gary Kephart
>>> Facebook: gary.kephart
>>> Twitter: @garykephart
>>>
>>> "The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.
>>>
--
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart
"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.
Re: suggestions for a long loading page
Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi Gary,
been doing some more tests. I've noticed that that page has a call to
the ReferringPagesPlugin, would you mind removing that line and seeing
if that speeds up the page load? I've set up a page with the same wiki
markup on a local wiki, and renders faster than what you're
experiencing, about 300ms. The ReferringPagesPlugin relies on the
ReferenceManager, which does a big amount of use of synchronized
methods, so if you're having a lot of people coming in, it may slow
down things. Also, I suspect that your cache may be full, so the page
may getting re-rendered every time and again, affecting page load
time.
regards,
juan pablo
On Thu, Dec 23, 2021 at 12:09 AM Juan Pablo Santos Rodríguez
<ju...@gmail.com> wrote:
>
> Hi Gary,
>
> Don't have the source in front of me right now, so mostly a hunch: looking at your systeminfo page, cache hits vs misses is 5.4M vs 3.6M. That seems to me like too many misses...
>
> Default cache configuration is for a thousand elements for each cache, so given the amount of pages may be tweaking the cache configuration is the way to go?
>
> Latest release allows to provide a custom ehcache file (please see changelog file for details). If you're not on latest you'll have to manually edit the file (IIRC, it is on the jspwiki-main jar, but I'm not completely sure right now).
>
>
> HTH,
> juan pablo
>
> El mié., 22 dic. 2021 21:22, Gary Kephart <ga...@pobox.com> escribió:
>>
>>
>> I have a page that takes over 30 seconds to load. I've no doubt that
>> this is due to the 2200+ page links it has in it. It seems as though
>> there's still something that I could do to decrease that time.
>>
>> I have "jspwiki.usePageCache = true" in my jspwiki-custom.properties.
>>
>> I have tried to use ReferringPagesPlugin and tagging sets of the
>> referenced pages together using categories, like "Category A Character"
>> and "Category B Character". That would reduce the page to just 26 calls
>> to the ReferringPagesPlugin. But when adding 3-4 of those, it seemed to
>> make the page loading even longer.
>>
>> Here's the page:
>>
>> https://encyclopaedia-wot.org/Wiki.jsp?page=Characters%2C%20Aliases%20%26%20Nicknames
>>
>>
>> Any ideas?
>>
>>
>> Gary
>>
>> --
>> Gary Kephart
>> Facebook: gary.kephart
>> Twitter: @garykephart
>>
>> "The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.
>>
Re: suggestions for a long loading page
Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi Gary,
Don't have the source in front of me right now, so mostly a hunch: looking
at your systeminfo page, cache hits vs misses is 5.4M vs 3.6M. That seems
to me like too many misses...
Default cache configuration is for a thousand elements for each cache, so
given the amount of pages may be tweaking the cache configuration is the
way to go?
Latest release allows to provide a custom ehcache file (please see
changelog file for details). If you're not on latest you'll have to
manually edit the file (IIRC, it is on the jspwiki-main jar, but I'm not
completely sure right now).
HTH,
juan pablo
El mié., 22 dic. 2021 21:22, Gary Kephart <ga...@pobox.com> escribió:
>
> I have a page that takes over 30 seconds to load. I've no doubt that
> this is due to the 2200+ page links it has in it. It seems as though
> there's still something that I could do to decrease that time.
>
> I have "jspwiki.usePageCache = true" in my jspwiki-custom.properties.
>
> I have tried to use ReferringPagesPlugin and tagging sets of the
> referenced pages together using categories, like "Category A Character"
> and "Category B Character". That would reduce the page to just 26 calls
> to the ReferringPagesPlugin. But when adding 3-4 of those, it seemed to
> make the page loading even longer.
>
> Here's the page:
>
>
> https://encyclopaedia-wot.org/Wiki.jsp?page=Characters%2C%20Aliases%20%26%20Nicknames
>
>
> Any ideas?
>
>
> Gary
>
> --
> Gary Kephart
> Facebook: gary.kephart
> Twitter: @garykephart
>
> "The penalty that good men pay for not being interested in politics is to
> be governed by lesser men." -- Plato.
>
>