Giter Club home page Giter Club logo

Comments (10)

jjmontesl avatar jjmontesl commented on June 13, 2024
  1. Could you provide reproduction steps? When is it exactly getting stuck, what are the steps?
  2. How many views are there in the database?
  3. Have you checked if your database is involved? Does this happen if you access view objects via the administration backend? (http://yourhost:8000/admin, and enter the password you entered when initializing the database).

from cubesviewer.

voldesh avatar voldesh commented on June 13, 2024

I started the cubesviewer Django server.
Then, I started the slicer server.
Now, I went to the website where I hosted it.
And when I clicked on the button "Cubes", it takes some time to get me the list of available cubes from my cubes model.
Plus, when I try to save the opened view, it takes about a minute to save it.
And when I refresh and try to look at all the available Saved Views, it then takes a time to get me that.
Being too slow getting me the views.

It is taking too much time to get even 1 saved view.

from cubesviewer.

jjmontesl avatar jjmontesl commented on June 13, 2024

I cannot reproduce this.

I'd need a trace of network requests made from the browser (ie a screenshot of Chrome development tools showing the Network XHR requests involving loading and saving, and showing sizes and times).

Also please answer points 2 and 3 above (number of views, and whether this happens from the CubesViewer Server administration backend).

Ultimately, if possible, I might need access to this installation to troubleshoot this.

from cubesviewer.

voldesh avatar voldesh commented on June 13, 2024

screenshot from 2016-06-13 13 59 10

info request takes much longer time. It sits pending and until that Cubes are not showing in the browser.

Point 2. I am using 1 view.

Point 3. No, I have not tried.

from cubesviewer.

jjmontesl avatar jjmontesl commented on June 13, 2024

The request that is slow (~8.5 sec) is the info request made to Cubes.

The problem does not seem related to CubesViewer, but to the Cubes installation. Please answer the following questions:

  1. Where is your Cubes Server deployed? (is it also localhost?)
  2. What is the value of the settings.py keys: CUBESVIEWER_CUBES_URL and CUBESVIEWER_BACKEND_URL.
  3. Try accessing your Cubes server directly: ie http://localhost:5000/info (URL depends on where you deployed your Cubes server). If that takes a long time, the problem is definitely with the Cubes installation.

from cubesviewer.

jjmontesl avatar jjmontesl commented on June 13, 2024

Also, in case you are using 'slicer' as Cubes server:

  1. Edit your slicer.ini.
  2. Locate the [server] section
  3. Add processes: 10 to that section, restart slicer and try again.

Let me know the results.

from cubesviewer.

voldesh avatar voldesh commented on June 13, 2024
  1. Tried the cubes server on both localhost as well as on an address in the VPN.
  2. values are changed as per being on localhost or a different address.
  3. /info gives pretty quick results. That isn't the issue, I think.

I was experimenting yesterday and found that Firefox loads /info pretty quick, while Chrome takes a while on localhost as well as an address in the VPN.

from cubesviewer.

voldesh avatar voldesh commented on June 13, 2024

Issue solved by adding processes:10 in server section of slicer. Now, it works fast on both localhost as well as on different address.

from cubesviewer.

jjmontesl avatar jjmontesl commented on June 13, 2024

Happy to hear it's solved.

The issue actually was caused because Cubes testing server (slicer serve) accepts only one simultaneous request by default, which you can increase with processes. Browsers keep a connection open for a while (HTTP KeepAlive) so you could not access Cubes server from another client.

The workaround is ok, but for production purposes remember that you should front Cubes with a proper web server (like Apache or Nginx), since the 10 connections limit will hit you sooner or later.

from cubesviewer.

voldesh avatar voldesh commented on June 13, 2024

Yes, you are correct on that part. Thank you !

Additionally, isn't that processes thing be in the docs ?

from cubesviewer.

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.