Giter Club home page Giter Club logo

Comments (4)

torrin47 avatar torrin47 commented on June 28, 2024

Unfortunately, the performance was so slow on production that our monitoring script decided the site was down 4 times in the first hour. Can't live with that, rolled back to old version until we can address stability.

from edg_metadata.

torrin47 avatar torrin47 commented on June 28, 2024

So I was reviewing the logs trying to understand the performance impact, and noticed one thing right at the outset. Each REST query ended up making 3 separate calls, following this pattern:

2017-06-13 22:39:45 134.67.221.182 GET /metadata/RestQueryServlet start=1&max=6&f=json&owner=11&max=6 443 - 134.67.221.182 Java/1.8.0_112 200 0 0 226 2017-06-13 22:39:45 134.67.221.182 GET /metadata/RestQueryServlet start=1&max=6&f=json&owner=11&max=6 443 - 134.67.221.182 Jakarta+Commons-HttpClient/3.1 200 0 0 208 2017-06-13 22:39:45 134.67.221.182 GET /metadata/rest/find/document owner=Region%209&start=1&max=6&f=json 443 - 134.67.221.182 GeoportalServer 200 0 0 469

I don't really know what the RestQueryServlet is or how requests are directed there, but I tried switching the URLs we have embedded in the homeBody.jsp to point directly at the RestQueryServlet, and it dramatically cut down on the number of hits logged, reduced the page loading time from ~30s to ~13s. Which is pretty sweet, but I still think it's worth pursuing the cache option. I'll check in the tweaks.

from edg_metadata.

Saisuma004 avatar Saisuma004 commented on June 28, 2024

from edg_metadata.

torrin47 avatar torrin47 commented on June 28, 2024

This issue was moved to USEPA/EPA_Environmental_Dataset_Gateway#22

from edg_metadata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.