question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slowdown with /Users queries starting in 4.5.0

See original GitHub issue

We’ve noticed some slowdowns with UAA on a dev deployment of PCF where ERT was upgraded from https://docs.pivotal.io/pivotalcf/1-11/pcf-release-notes/runtime-rn.html#1.11.5 (w/UAA 4.1.0) to https://docs.pivotal.io/pivotalcf/1-11/pcf-release-notes/runtime-rn.html#1.11.12 (w/UAA 4.5.0). After the upgrade queries to /Users seem to take really long. For e.g. a root zone with 40+ users takes around 20+ seconds to return result to /Users query. I was able to reproduce the same thing with UAA apps on PCF dev, one app is 4.4.0 and one is 4.5.0… I couldn’t get them to run against mysql (which is what we’re using and likely make things slightly slower I’m guessing) for some reason, so they’re using the in memory hsqldb but I can still see the performance diff. The same query (list 200 users) done against uaa 4.4.0 takes ~600ms, but takes 8-9 seconds on the 4.5.0 app.

Reproduction steps… 4.4.0 app

git clone https://github.com/cloudfoundry/uaa.git
cd uaa
git checkout tags/4.4.0 -b 4.4.0
./gradlew clean package
./gradlew manifests -Dapp=uaa440 -Dapp-domain=local.pcfdev.io
cf push uaa440 -f build/sample-manifests/uaa-cf-application.yml
uaac target https://uaa440.local.pcfdev.io
uaac token client get admin -s adminsecret
for num in {1..200}; do user=user${num}; echo "$user"; uaac user add user${num} -p password --email "$user@test.io"; done

timing w/4.4.0…

13:47 $ python -m timeit "__import__('os').system('uaac users --count 200 >/dev/null')"
10 loops, best of 3: 585 msec per loop

4.5.0 app

git clone https://github.com/cloudfoundry/uaa.git
cd uaa
git checkout tags/4.5.0 -b 4.5.0
./gradlew clean package
./gradlew manifests -Dapp=uaa450 -Dapp-domain=local.pcfdev.io
cf create-service p-mysql 512mb uaa450-db
cf push uaa450 -f build/sample-manifests/uaa-cf-application.yml
uaac target --skip-ssl-validation https://uaa450.local.pcfdev.io
uaac token client get admin -s adminsecret
for num in {1..200}; do user=user${num}; echo "$user"; uaac user add user${num} -p password --email "$user@test.io"; done

timing w/4.5.0…

13:51 $ python -m timeit "__import__('os').system('uaac users --count 200 >/dev/null')"
10 loops, best of 3: 8.51 sec per loop

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

0reactions
fhanikcommented, Sep 29, 2017

@drennalls not familiar with the cf-java-client, so not sure how to pass in query arguments.

Let me know if develop has restored what you were looking for. I believe 4.4.0 had an in memory cache. we now have the similar cache, the new one has expiring values to save server side resources.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recommended BDA Settings to Improve Performance ...
Purpose. Recommendations to improve performance slowdowns characterized by network timeouts or network-related issues/exceptions like ...
Read more >
Unable to run systemd services on Docker Desktop 4.3.0 #6073
I've recently been given a new M1 MBP laptop where I'm trying to run a docker image with systemd that we use as...
Read more >
Configuration — phpMyAdmin 4.5.2 documentation
Starting with version 2.3.0 phpMyAdmin offers a lot of features to work with ... Setting this to true allows the user to execute...
Read more >
Indexing for IBM FileNet P8 Content Engine Searches
The techniques that follow are to identify slow SQL query execution times. A client search may still be slow, if many rows have...
Read more >
Why Hibernate Search is slow? Even with few records
To start, turn on SQL query logging for Hibernate and manually run the generated query to see whether the slowdown is in Hibernate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found