[mapguide-users] mgserver consumes about 100 % of processor capacity

Walt Welton-Lair walt.welton-lair at autodesk.com
Mon Apr 3 13:40:48 EDT 2006


The server uses ports 2800/2801/2802 to communicate with the web-tier.
You'll see these configured in both serverconfig.ini and webconfig.ini
(they should match in both config files).  Port 8008 is used by Apache.

As for the server hanging, it's hard to diagnose your problem without
having more info.  We have successfully built and tested MGOS on Fedora
Core 4 (kernel 2.6.11-1.1369_FC4) with gcc 4.0.2, and have not
experienced the problem you're seeing.

Are you comfortable running the GDB debugger?  You could run mgserver
under GDB, and then find out where exactly it's hanging.  Here's what to
do:

1/ change to the mgserver runtime/installation folder

2/ edit mgserver.sh, and change the following line
	./mgserver /interactive
   to
	gdb --args ./mgserver /interactive

3/ run ./mgserver.sh

4/ from GDB type 'run' => mgserver should begin startup

5/ once it gets to where its hung type ctrl-c

6/ enter 'bt' to generate a stack trace


Walt

P.S. Be sure to reply to users at mapguide.osgeo.org

-----Original Message-----
From: Safonov Alexey [mailto:alex-saf at archit.vrn.ru] 
Sent: Monday, April 03, 2006 6:46 AM
To: Walt Welton-Lair
Subject: RE: [mapguide-users] mgserver consumes about 100 % of processor
capacity

Thanks Walt!

I have made ?? to you have told. Has started mgserver/interactive, any
message at all has not received. Loading of the processor also about 100
%.
Also by your advice has removed catalogues inside
usr/local/mapguideopensource/server/Repositories. Without result. As I
understand, the server msserver after start should listen to 8008 port.
But
it does not occur (netstat does not show it) though ps shows presence of
process mgserver.
Please, help me in solving this problem.

Alex Safonov

-----Original Message-----
From: Walt Welton-Lair [mailto:walt.welton-lair at autodesk.com]
Sent: Wednesday, March 29, 2006 11:56 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] mgserver consumes about 100 % of processor
capacity


As a start try running the server interactively:
- shut down any existing mgserver process
- cd to the server runtime directory
(/usr/local/mapguideopensource/server/bin)
- enter the command 'mgserver /interactive'

Does the server start up all the way (you should see a "Server started"
message)?

Another thing to try is to start with an empty repository:
- shut down any existing mgserver process
- backup your repository directory
(/usr/local/mapguideopensource/server/Repositories)
- cd into this directory and delete all files/folders except for the
following folders:
    Library
       DataFiles
    Session
       DataFiles
    Site
    TileCache
- cd to the server runtime directory
(/usr/local/mapguideopensource/server/bin)
- enter the command 'mgserver /interactive'

Does that help at all?  Does the server settle down to an idle state?

Walt

-----Original Message-----
From: Safonov Alexey [mailto:alex-saf at archit.vrn.ru]
Sent: Wednesday, March 29, 2006 5:32 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] mgserver consumes about 100 % of processor
capacity

Dear colleagues!

I making and start mapguide-1.0.0 RC1 on a platform linux. But at start
the
server mgserver consumes about 100 % of processor capacity. Thus
mgserver
does not write any a broad gully-files and I not in a condition to
define in
what a problem. I making mapserver both as debug and as release - result
the
same.

-------------------------------------------------------
Btop - 13:22:20 up 5 days, 21:30,  7 users,  load average: 1.42, 1.46,
1.44
Tasks:  123  total,    3  running,  120  sleeping,    0  stopped,    0
zombie
Cpu(s):  94.3%  us,   0.7%  sy,   0.0%  ni,   4.2%  id,   0.8%  wa,
0.0%
hi,   0.0%  si
Mem:     247956k  total,    240812k  used,      7144k  free,     23896k
buffers
Swap:   2048276k  total,    281072k  used,   1767204k  free,     51104k
cached

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
7350 root      25   0 60628  22m  17m R 98.7  9.2   6876:39 mgserver
3630 root      15   0  2016  948  712 R  2.0  0.4   0:00.01 top
    1 root      16   0  1744  268  240 S  0.0  0.1   0:01.34 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.04 events/0
    4 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 khelper
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
------------------------------------------------------

I use the distributive Linux Fedore Core 4 with the kernel
2.6.15-1.1833-FC4
and gcc-4.0.2-8.fc4.
Please, help me in solving this problem.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide_users mailing list