Unfortunately I don't know Java anywhere near well enough to know my way around a profiler or jstack. I've confirmed JMX is enabled and I can telnet to the port, but VisualVM fails to connect and gives me no reason as to why.
I can post the query and result if that's useful - it doesn't return any records so there's nothing to censor On Wed, 6 Nov 2024 at 15:36, Gus Heck <gus.h...@gmail.com> wrote: > If you have access to a test instance where the problem can be reproduced, > attaching a profiler would be one way. Another cruder method is to use > jstack to dump all the threads. > > Another way to tackle this is to help us reproduce your problem. Can you > share details about your query? Obviously, please don't post anything your > company wouldn't want public, but if you can share some details that would > be a start. > > The ideal thing would be to provide a minimum working example of the > problem you are experiencing. > > On Wed, Nov 6, 2024 at 9:55 AM Dominic Humphries > <domi...@adzuna.com.invalid> > wrote: > > > I've tried both timeAllowed and cpuAllowed and neither are restricting > the > > amount of time the queries take to run. I have a test query that's > reliably > > taking 20-30 seconds, if there's any useful debug params or such I can > run > > to provide the information you want I'm happy to run them - I'm not sure > > how to usefully interrogate solr for where its time is being spent, sorry > > > > Thanks > > > > On Wed, 6 Nov 2024 at 14:25, Gus Heck <gus.h...@gmail.com> wrote: > > > > > There are unit tests that seem to suggest that timeAllowed still works, > > can > > > you provide some more information about your use case? Particularly > > > important is any information about where (what code) your queries are > > > spending a lot of time in if you have it. > > > > > > On Wed, Nov 6, 2024 at 6:18 AM Dominic Humphries > > > <domi...@adzuna.com.invalid> > > > wrote: > > > > > > > Hi folks, > > > > > > > > we're testing Solr 9.7 to upgrade our existing 8.11 stack. We're > > seeing a > > > > problem with long requests: we send `timeAllowed=4900` which works > fine > > > on > > > > the existing 8.11 and keeps requests to just a few seconds. > > > > > > > > With 9.7, however, the flag is basically ignored - requests can take > > over > > > > 30 seconds whether the flag is present or not, which is causing > higher > > > CPU > > > > load and slowing response times. > > > > > > > > I've tried setting the flag suggested in > > > > > > > > > > > > > > https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html#use-of-timeallowed > > > > - but even with solr.useExitableDirectoryReader set we still don't > get > > > the > > > > desired behaviour. > > > > > > > > Is there anything else I can try to get the old behaviour back? > > > > > > > > Thanks > > > > > > > > > > > > > -- > > > http://www.needhamsoftware.com (work) > > > https://a.co/d/b2sZLD9 (my fantasy fiction book) > > > > > > > > -- > http://www.needhamsoftware.com (work) > https://a.co/d/b2sZLD9 (my fantasy fiction book) >