I have an OES box as described with 4Gig of RAM. It started having "multiple
abend" events where it completely froze and created no abend log. Only a
power cycle would restore the server. After memory tuning with Memcalc
(better memory management but no improvement,) installing the new
server.exe, trying auto-tune as per new server.exe instructions (faster,
more complete crashes,) returning to memcalc to calc new parameters, I was
able to keep the server up long enough to track the error to the WSImport
java process - I caught it as it was going. That process was causing java to
go "run away," growing in memory footprint until CPU utilization was 100%
and the server froze. Searching TIDs, I came across one on java and high
memory usage - 10070512. While the TID was specific to tomcat, WSImport
starts with a very similar java command-line. I took a chance and added the
recommended "-Xms128m -Xmx256m" to the ZenWSImp.ncf. Now the server does not
crash but CPU still goes 100%. When it does, Monitor:Kernel:BusiestThreads
shows the "Java_XXX Thread_1" (there XXX is the PID of the WSImport java
perocess) as the busy thread with multiple megs of RAM - nothing else even
close. My Middle Tier service remains functional which is my first concern.
I can kill the java process and restart it but I'd rather not have to pay
that close of attention to it.

Zen-wise, the server is doing Inventory, Import and Middle Tier. I'm not
clear why it started this abend bit. The server had been running for the
better part of a year. The abends started a good while after the last
service pack installs. At the time, it had 2Gb RAM. I added 2Gb, did the
tuning, as described, and got where I am.

FWIW, (new info) when the server is collecting inventory information is when
it is likely to go bad. I notice that Inventory starts with -Xmx128m. Is
this value in need of change?

Any ideas?

Erick Larson
Perkins Library
Duke University

Current memory config based on:

*** Memory Pool Configuration for : CHET
Time and date : 09:41:18 AM 06/05/2006
Server version : NetWare 6.5 Support Pack 5
Server uptime : 2d 16h 08m 12s
SEG.NLM version : v1.72

0xFFFFFFFF --------------------------------------------------------------
| Kernel Reserved Space |
| |
| Size : 180,355,071 bytes (172.0 MB) |
| |
0xF5400000 --------------------------------------------------------------
| User Address Space (L!=P) |
| |
| User Pool Size : 706,740,224 bytes (674.0 MB) |
| High Water Mark : 3,623,878,656 bytes (3.38 GB) |
| |
0xCB200000 --------------------------------------------------------------
| Virtual Memory Cache Pool (L!=P) |
| |
| VM Pool Size : 1,251,999,744 bytes (1.17 GB) |
| Available : 326,066,176 bytes (311.0 MB) |
| Total VM Pages : 295,739,392 bytes (282.0 MB) |
| Free Clean VM : 271,515,648 bytes (258.9 MB) |
| Free Cache VM : 24,223,744 bytes (23.1 MB) |
| Total LP Pages : 21,831,680 bytes (20.8 MB) |
| Free Clean LP : 21,831,680 bytes (20.8 MB) |
| Free Cache LP : 0 bytes (0 KB) |
| Free Dirty : 0 bytes (0 KB) |
| VM Pages In Use : 8,495,104 bytes (8.1 MB) |
| NLM Memory In Use : 929,722,368 bytes (886.7 MB) |
| NLM/VM Memory : 909,570,048 bytes (867.4 MB) |
| Largest Segment : 34,955,264 bytes (33.3 MB) |
| High Water Mark : 1,048,170,496 bytes (999.6 MB) |
| |
0x80800000 --------------------------------------------------------------
| File System Cache Pool (L==P or L!=P) |
| |
| FS Pool Size : 2,149,576,704 bytes (2.00 GB) |
| Available : 277,233,664 bytes (264.4 MB) |
| Largest Segment : 268,271,616 bytes (255.8 MB) |
| |
| NSS Memory (85%) : 1,567,010,816 bytes (1.46 GB) |
| NSS (avail cache) : 1,563,918,336 bytes (1.46 GB) |
| |
0x00601000 --------------------------------------------------------------
| DOS / SERVER.NLM |
| |
| Size : 6,295,552 bytes (6.0 MB) |
| |
0x00000000 --------------------------------------------------------------

Top 6 Memory Consuming NLMs
NLM Name Version Date Total NLM Memory
================================================== ==============================
1. DBSRV8.NLM 8.00.02 Nov 4, 2003 205,867,599 bytes (196.3
MB)
2. NSS.NLM 3.24.01 Mar 10, 2006 198,722,336 bytes (189.5
MB)
3. SERVER.NLM 5.70.05 Apr 11, 2006 156,389,626 bytes (149.1
MB)
4. MM.NLM 3.21.07 Nov 1, 2005 142,949,494 bytes (136.3
MB)
5. DS.NLM 10552.79 Aug 9, 2005 42,075,918 bytes (40.1 MB)
6. APACHE2.NLM 2.00.54 Oct 31, 2005 18,602,469 bytes (17.7 MB)



Logical Memory Summary Information
================================================== ==============================

File System Cache Information
FS Cache Free : 269,488,128 bytes (257.0 MB)
FS Cache Fragmented : 7,745,536 bytes (7.4 MB)
FS Cache Largest Segment : 268,271,616 bytes (255.8 MB)

Logical System Cache Information
LS Cache Free : 193,433,600 bytes (184.5 MB)
LS Cache Fragmented : 174,620,672 bytes (166.5 MB)
LS Cache Uninitialized : 333,455,360 bytes (318.0 MB)
LS Cache Largest Segment : 34,955,264 bytes (33.3 MB)
LS Cache Largest Position : C5D0C000

Summary Statistics
Total Free : 462,921,728 bytes (441.5 MB)
Total Fragmented : 182,366,208 bytes (173.9 MB)
Highest Physical Address : BFFBF000
User Space : 887,095,296 bytes (846.0 MB)
User Space (High Water Mark) : 3,623,878,656 bytes (3.38 GB)
NLM Memory (High Water Mark) : 1,048,170,496 bytes (999.6 MB)
Kernel Address Space In Use : 2,762,584,064 bytes (2.57 GB)
Available Kernel Address Space : 645,287,936 bytes (615.4 MB)


Memory Summary Screen (.ms)
================================================== ==============================

KNOWN MEMORY Bytes Pages Bytes Pages
Server: 3220495408 786253 Video: 8192 2
Dos: 71632 17 Other: 131072 32

FS CACHE KERNEL NLM MEMORY
Original: 3216359424 785244 Code: 51412992 12552
Current: 277233664 67684 Data: 24764416 6046
Dirty: 0 0 Sh Code: 45056 11
Largest seg: 268271616 65496 Sh Data: 20480 5
Non-Movable: 32768 8 Help: 266240 65
Other: 1865613312 455472 Message: 1445888 353
Avail NSS: 1563918336 381816 Alloc L!=P: 686424064 167584
Movable: 8192 2 Alloc L==P: 145190912 35447
Total: 909570048 222063
VM SYSTEM
Free clean VM: 271515648 66288
Free clean LP: 21831680 5330
Free cache VM: 24223744 5914
Free cache LP: 0 0
Free dirty: 0 0
In use: 8495104 2074
Total: 326066176 79606

Memory Configuration (set parameters)
================================================== ==============================

Auto Tune Server Memory = OFF
File Cache Maximum Size = 2155872256
File Service Memory Optimization = 1
Logical Space Compression = 1
Garbage Collection Interval = 299.9 seconds
VM Garbage Collector Period = 300.0 seconds
server -u<number> = 706740224

NSS Configuration File:
C:\NWSERVER\NSSSTART.CFG
------------------------------
File does not exist,
or is zero byte in size.

DS Configuration File:
SYS:\_NETWARE\_NDSDB.INI
------------------------------
cache=50331648
cacheadjustinterval=15
cachecleanupinterval=15
blockcachepercent=50
preallocatecache=true

Server High/Low Water Mark Values
================================================== ==============================

NLM Memory High Water Mark = 1,048,170,496 bytes
File System High Water Mark = 418,074 bytes

User Space Information:
User Space High Water Mark = 609,058,816 bytes
Committed Pages High Water Mark = 109 pages
Mapped VM Pages High Water Mark = 7,371 pages
Reserved Pages High Water Mark = 902,641 pages
Swapped Pages High Water Mark = 7,962 pages

Available Low Water Mark = 556,625,920
ESM Memory High Water Mark = 245 pages



Last memcalc results:

NLM Memory = 909570048
NLMHWM Memory = 1048170496
DS Memory = 42075918
Phys Memory = 3216359424
UAS Memory = 609058816

Calculating settings based on following values:

Physical memory (Bytes) : 3,216,359,424
NLM Footprint (Bytes) : 909,570,048
NLM High Water (Bytes) : 1,048,170,496
UAS (Bytes) : 609,058,816
DS Foot print (Bytes) : 42,075,918

Execute these commands on the console, then add them to the end of
startup.ncf, and make sure they are not being set in autoexec.ncf.

set auto tune server memory=off
set file cache maximum size=1983905792
set fs cache pool minimum pages=450818
set fs cache pool desired pages=524288
set fs cache pool lots of pages=524288
set vm cache pool percentage=5
set vm cache pool maximum pages percentage=5

Edit sys:_netware\_ndsdb.ini - create if not existing and add these lines:

cache=50331648
cacheadjustinterval=15
cachecleanupinterval=15
blockcachepercent=50
preallocatecache=true

Edit c:\autoexec.bat and add "-u609058816" to the server line