Forums

Slow Consoles

I've been having problems with PA for a couple of days now.

The bash consoles are extremely slow and constantly freezing so I'm forced to shut them down.

Are you having performance issues?

There was a problem with one of our console servers -- it just reset itself and should be fine now. But that only started happening an hour or so back, so I don't think it can be the cause of the problem you're seeing.

When you say extremely slow, how slow do you mean? Are they slow just from an interactive perspective (eg. making it hard to type) but OK in terms of how long they take to execute commands once you've typed them in? Or are they hard to type into and running stuff slowly?

They are hard to type into and running stuff slowly

Thanks for clarifying that. We use PythonAnywhere ourselves for developing, so I'm sure we'd have spotted a general problem.

Is this affecting all of your consoles? If it's only some of them, do you know which console server they're running on? If you refresh the console page then the name of the server will appear at the bottom of the page just before it connects.

Actually, it might make it easier if you just tell me the IDs of the consoles showing the problem -- if you haven't changed their names, then it will be the number at the end of the name.

It's currently 323040 and 323043

Hi,

This morning the consoles seems to "run stuff" at normal speed.

However, the consoles are still lagging when I type and are very hard to use as they are constantly freezing and then reloading.

That sounds like an internet connection problem. When you connect to a PythonAnywhere console, it tries to use WebSockets, which is fast and responsive. But if that doesn't work -- if you're behind a proxy that doesn't support WebSockets, or using an older browser that doesn't support them -- then it tries one of several legacy protocols which work but are slow.

Looking at your current sessions, it appears that you're connecting using XHR, which is one of the legacy protocols. That would explain why everything's slow and laggy.

Are you working from a different location to normal? Or using a different browser?

Hmm I'm pretty sure it's not the internet connection - been having the same problem logging on from different locations.

However, the problem does seem to be computer/browser related.

Thanks for looking into this.

No problem. Out of interest, which browser/OS are you using?

Was using an old mac (10.5.8) with Safari (5.0.6). Switched to Ubuntu/Firefox and everything was fine.

Interesting. One possibility is that the WebSocket support in that version of Safari was buggy. It looks like they introduced WebSockets in version 5.0, but it was for an early version of the protocol. So perhaps it wasn't working well, or it was an old enough version that our fallback code switched to one of the legacy protocols.

If you want to switch back to using your Mac, perhaps you could upgrade Safari and try again, or use Chrome -- I suspect that would work better.

bump, console is slow again

Hi there,

I have given one of our consoles a hit on the head. Let us know if it is still slow now?

Conrad