There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-fd5601af-2b6b-4c72-a62c-451587f910dd XWIKI-15103 Open

Livetable doc_location produce much bigger JSON than it should

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-6c88ca0e-5d6c-44a7-931e-88f116ee72f8 Thomas Mortagne on 19/Sep/25 12:23
 
I don't have the instance and the steps to reproduce, just the memory dump but here are the info I have in Yourkit.

I tried to find more info and there is indeed something fishy: https://<myhost>/xwiki/bin/get/XWiki/UserDirectoryLivetableResultsOverride?outputSyntax=plain&transprefix=xe.userdirectory.&classname=XWiki.XWikiUsers&collist=_avatar%2Cdoc.name%2Cfirst_name%2Clast_name%2Ccompany%2Cdirection%2Clevel2%2Clevel3%2Clevel4%2Clevel5%2Clevel6%2Cgeosite%2Cphone%2CbusinessUnit%2Cactive%2Cemail%2Caccessibility%2Cmobile%2Cmanager%2Cemployee_type%2Cfunction%2Cskin%2CdisplayHiddenDocuments&queryFilters=currentlanguage%2Chidden&offset=1&limit=3500&reqNo=1&sort=doc.name&dir=asc

Not No idea how the user ended up with this URL with a limit set to 3500 but that 's might be why it's a lot bigger that a 15 rows one.

Will reduce the priority.

Still it's not nice to get a big html in what should ideally return data as fast as possible, the livetable really need some refactoring.

bq. The live table results page builds the JSON and returns it to the live table without keeping any reference

The fact that it's temporary does not really mean you can take as much memory as you want :)
When the browser have to download 20M and the thread retain 115M during that time it become a lot less temporary and it spikes very quickly on an active wiki.