Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GUI Extremely Slow on Remote Machines (Linux)

361 views
Skip to first unread message

Ephraim

unread,
Dec 5, 2007, 5:49:18 AM12/5/07
to
We run Matlab 2007a on Linux Debian Lenny 32 bit machines.

When running the GUI locally, response time is fine.

When running remotely without the GUI (-nojvm), response
time is fine.

When running remotely with the GUI, response time is
atrocious (almost a minute just to move between subwindows)
even though the remote Linux machine is much stronger than
than the local host.

Other GUI applications other than Matlab give good response
time when run remotely so the network is not the problem.

The problem persists over a variety of Window managers (e.g.
fvwm, ctwm, icewm, xfce).

Any ideas/pointers would be appreciated.

Ephraim


Walter Roberson

unread,
Dec 5, 2007, 1:32:06 PM12/5/07
to
In article <fj5vne$f62$1...@fred.mathworks.com>,
Ephraim <ephraim...@cs.huji.ac.il> wrote:

>We run Matlab 2007a on Linux Debian Lenny 32 bit machines.

>When running the GUI locally, response time is fine.

>When running remotely without the GUI (-nojvm), response
>time is fine.

>When running remotely with the GUI, response time is
>atrocious (almost a minute just to move between subwindows)
>even though the remote Linux machine is much stronger than
>than the local host.

>Other GUI applications other than Matlab give good response
>time when run remotely so the network is not the problem.

It -is- a network issue: you are seeing *very* bad latencies
as Matlab communicates with your local X server.

I have seen the same effect when I run Matlab at work, displaying
at home over an ssh tunnel. I have timed a few times: over 70
seconds just to minimize the command window and have the editor
underneath repaint and come to attention. Trying to do real work
through that delay is very trying on one's patience.


The workaround we have found is to use vnc: we have a vnc server
on the remote machine providing a window manager that is local
to that server, and our vnc client (could be remote) talks to the
vnc server. Response time is really very reasonable, even over
a residential cable connection.
--
"Any sufficiently advanced bug is indistinguishable from a feature."
-- Rich Kulawiec

Holger Friedrich

unread,
Jan 23, 2008, 9:57:02 AM1/23/08
to
Hello Ephraim,

did you get this issue resolved?

We have exactly the same problem after upgrading to new
server hardware (gigabit ethernet network, a64 xeon
machine).

Local access works just fine, as vnc does also.
SSH access (linux client, x86) is very slow; updating menu
dropdown takes about 1 second. Can't work....

Holger

Ephraim

unread,
Jan 24, 2008, 2:36:02 AM1/24/08
to
Hello.

> did you get this issue resolved?

Not exactly -- the official response was:

"Mathworks do not officially support launching MATLAB from a
remote machine."

> Local access works just fine, as vnc does also.
> SSH access (linux client, x86) is very slow; updating menu
> dropdown takes about 1 second. Can't work....

Beyond the official response above, they suggested using
VNC or SSH with the DISPLAY set to IPaddressHere:0.0 of
the local workstation. The SSH suggestion did not result in
any significant improvement.

Ephraim

i-me Budumlu

unread,
Jan 23, 2009, 4:43:01 AM1/23/09
to
"Ephraim " <ephraim...@cs.huji.ac.il> wrote in message <fn9f52$7rj$1...@fred.mathworks.com>...

Hello,

maybe I found a resolution for this problem! Just put a file called "java.opts" containing the Java option "-Dsun.java2d.pmoffscreen=false" into the directory *matlabroot*/bin/*system*/

On our system (opensuse 10.3) this solves the problem!

i-me


Holger Friedrich

unread,
Feb 26, 2009, 2:56:01 PM2/26/09
to
>
> Hello,
>
> maybe I found a resolution for this problem! Just put a file called "java.opts" containing the Java option "-Dsun.java2d.pmoffscreen=false" into the directory *matlabroot*/bin/*system*/
>
> On our system (opensuse 10.3) this solves the problem!
>
> i-me
>

I confirm. This works fine!

Thanks
Holger

James

unread,
Mar 13, 2009, 5:17:01 PM3/13/09
to
This also resolved a similar issue I had with MATLAB 2009a on Ubuntu 8.10 Intrepid Ibex.

My GUI was also very slow (running locally), and would cause XOrg use to spike.

Just a note: there was no "system" directory in my installation, so I created it.

Thanks for figuring this out!

James

"Holger Friedrich" <holger.frie...@vsi.cs.uni-frankfurt.de> wrote in message <go6s4h$hmc$1...@fred.mathworks.com>...

James

unread,
Mar 13, 2009, 5:35:02 PM3/13/09
to
Just one more note: I had to run MATLAB from the system directory I just created for this to work. Just calling the matlab executable normally didn't do it. I made a shell script to change the directory, then call MATLAB.

"James " <james....@colorado.edu.REMOVETHIS> wrote in message <gpeigd$gd4$1...@fred.mathworks.com>...

Benjamin

unread,
Mar 17, 2009, 5:38:01 AM3/17/09
to
"James " <james....@colorado.edu.REMOVETHIS> wrote in message <gpeji6$nlk$1...@fred.mathworks.com>...

> Just one more note: I had to run MATLAB from the system directory I just created for this to work. Just calling the matlab executable normally didn't do it. I made a shell script to change the directory, then call MATLAB.

May be you misunderstood the directory name "system". It has to be replaced by the short description of the architecture. On a Linux 64-bit system it is "glnxa64". The full directory name is for instance "/opt/Matlab/R2008b/bin/glnxa64". With this configuration, regardless where I start Matlab from, the java.opts file is always considered.

Peter Cendula

unread,
Aug 11, 2009, 9:02:19 AM8/11/09
to
Hi,
I put java.opts exactly where you said, "matlab71/bin/glnxa64". I have R14SP3 release on Ubuntu 8.04

If I start matlab from "bin" system directory or by link to it from any other directory,
it's still the same slow (1-2s delay) over ssh. If I start other java application (Comsol), the delay is not noticable over SSH (<few ms).

Does anybody have a clue?

Thanks
Peter

Thomas

unread,
Dec 8, 2009, 10:23:18 AM12/8/09
to
Sorry to come to this so late, but I have a similar problem with using Matlab on remote Ubuntu Linux machines. For me, it was solved by downgrading libx11-6 from a 1.1.x to a 1.0.x release. The newer releases have something called XCB, which I don't know a lot about, but nothing seems to need it, and it makes everything terribly slow over the network.

I only know how to fix this in Ubuntu:

1. download old versions of the libx11-6 and libx11-dev packages.
Go to these two pages, click on version 1.0.3-4ubuntu1, and download the .deb from the next page
https://launchpad.net/ubuntu/feisty/amd64/libx11-6
https://launchpad.net/ubuntu/feisty/amd64/libx11-dev
(those are the amd64 packages, for other architectures substitute "amd64" with "i386" or "ia64" or whatever)

2. Install those packages.
Go to the directory where you downloaded them, and run
sudo dpkg -i libx11*.deb

3. Put something in your /etc/apt/preferences, so that the packages aren't upgraded again, next time you install something.
My /etc/apt/preferences has the following contents:

# Newer versions (1.1.*) of libx11 make MATLAB super slow, so we use
# a version from Feisty.
Package: libx11-6
Pin: version 1.0.3*
Pin-Priority: 1001

Package: libx11-data
Pin: version 1.0.3*
Pin-Priority: 1001

The Pin-Priority has to be 1000 or higher for apt to decide to leave something downgraded.

Hope this helps.

Christodoulos Fragoudakis

unread,
Jan 24, 2010, 4:31:04 AM1/24/10
to
"i-me Budumlu" <t.bu...@uni-muenster.de> wrote in message <glc3f5$e3h$1...@fred.mathworks.com>...

Christodoulos Fragoudakis

unread,
Jan 24, 2010, 4:32:04 AM1/24/10
to
"i-me Budumlu" <t.bu...@uni-muenster.de> wrote in message <glc3f5$e3h$1...@fred.mathworks.com>...
0 new messages