Operating System - Tru64 Unix
1752801 Members
5736 Online
108789 Solutions
New Discussion юеВ

could not allocate code space

 
Donatella_2
New Member

could not allocate code space

We are running a java applications under Oracle 9iAs rel. 9.0.2.3 on a DS40 tru64 5.1B native java 1.3.1.3.
Pretty often the java container crash giving the error:

could not allocate code space: No such file or directory, file /sys/alpha/md.c, line 134

When this errors happens the Java container crash and restart.

The starting Java parameter are:

java -fast64 -Xms3072m -Xmx3072m -Xgc:compacting -Xnoprecompiledsys

Do you have any suggestion?
Below the memory allocation and kernel parameter.
Regards
Donatella

Below the Memory allocation
levante1.uniroma1.it> vmstat -P

Total Physical Memory = 6144.00 M
= 786432 pages

Physical Memory Clusters:

start_pfn end_pfn type size_pages / size_bytes
0 256 pal 256 / 2.00M
256 130970 os 130714 / 1021.20M
130970 131072 pal 102 / 816.00k
131072 786422 os 655350 / 5119.92M
786422 786432 pal 10 / 80.00k

Physical Memory Use:

start_pfn end_pfn type size_pages / size_bytes
256 289 scavenge 33 / 264.00k
289 1124 text 835 / 6.52M
1124 1295 data 171 / 1.34M
1295 1530 bss 235 / 1.84M
1530 1739 kdebug 209 / 1.63M
1739 1746 cfgmgmt 7 / 56.00k
1746 1748 locks 2 / 16.00k
1748 1762 pmap 14 / 112.00k
1762 4123 unixtable 2361 / 18.45M
4123 4267 logs 144 / 1.12M
4267 7673 vmtables 3406 / 26.61M
7673 131072 managed 123399 / 964.05M
131072 146080 vmtables 15008 / 117.25M
146080 786422 managed 640342 / 5002.67M
============================
Total Physical Memory Use: 786166 / 6141.92M

Managed Pages Break Down:

free pages = 100758
active pages = 455786
inactive pages = 63571
wired pages = 44778
ubc pages = 98778
==================
Total = 763671

WIRED Pages Break Down:

vm wired pages = 5702
ubc wired pages = 10
meta data pages = 23539
malloc pages = 11724
contig pages = 1467
user ptepages = 1518
kernel ptepages = 808
free ptepages = 10
==================
Total = 44778

Kernel Parameter

proc:
per_proc_stack_size=134217728
per_proc_data_size=4294967296

max_per_proc_stack_size=4294967296
max_threads_per_user=4096
max_proc_per_user=2048
max_per_proc_data_size=4294967296
max_per_proc_address_space=4294967296
per_proc_address_space=4294967296
maxusers=4096

6 REPLIES 6
Michael Schulte zur Sur
Honored Contributor

Re: could not allocate code space

Hi,

I assume you have installed the latest patch? Did you follow the instructions concerning java?
Isn't 3gb a little too much for startup?

greetings,

Michael
Donatella_2
New Member

Re: could not allocate code space

Hello,

witch latest patches are you talking about?
Yes we followed all the instructions.
Any how this system is completely dedicated to the applications, anything else is running, and as you can check it has a 6Gb RAM, why i could not dedicate 3Gb to the applications?
Another question, why the Xmx option does not work? In any case even the maximum allocated by Jvm is always equal to the Xms value.
Regards
Donatella
Michael Schulte zur Sur
Honored Contributor

Re: could not allocate code space

Donatella,

I am talking about the patch kit 4 for the unix and there is an instruction:
SPECIAL INSTRUCTIONS for Patch 1414.00
Prior to setting the executable_data tunable to a non-zero
value, you MUST run the following script:
/usr/sbin/javaexecutedata

Is this container only running once?

greetings,

Michael
Donatella_2
New Member

Re: could not allocate code space

hello Michael,

is it one of the latest patch kit?
if yes it is not installed,i cant' find it running setld -i.
What do you mean for " Is this container running once ?"
The Oracle 9iAS has a named OC4J container.
This container is the one that "contains" the applications, and it is supposed to be up and running.
When Java crashes i read the message on the log file and the container automatically restart after the crash.
Of course it is a problem being a transactional application and if it crashes all the transactions running at that moment are lost.
I cannot upgrade the JVM because once i tried to put on the 1.3.1-6 and we had problem in deploying the applications, in any case this is a production system, so i have to try all the modification on a test system first.

Greetings
Donatella
Michael Schulte zur Sur
Honored Contributor

Re: could not allocate code space

Hi,

you can see the installed patch kit with
dupatch -track -type kit
The output for the last kit is
T64V51BB25AS0004-20040616 OSF540

This java command is that only started once?

Michael
Donatella_2
New Member

Re: could not allocate code space

That patch is not installed, these are the patch kit installed:

Patches installed on the system came from following patch kits:
--------------------------------------------------------------

- T64V51BB22AS0002-20030415 OSF540
- T64V51BB22AS0002-20030415 TCR540

Yes the Java is started once and together with Apache are the only user process running on the system.
Regards
Donatella