Java Solaris 10 Zone settings


 
Thread Tools Search this Thread
Operating Systems Solaris Java Solaris 10 Zone settings
# 1  
Old 10-15-2009
Java Solaris 10 Zone settings

I have the following situation

1) Start JBoss Server 1
2) Within application - print as normal
3) Start JBoss Server 2

4) Printing STOPS on Server 1; Printing does NOT WORK on Server 2

Only solution is to stop Server 2;
Restart Server 1
Then Printing works as normal.

Doung a truss monitor (logging on jboss pid) gives error:

$ truss -f -d -p 5759 2>&1 | egrep -i 'exec|mem|fork'


Quote:
5759/55: 20.5628 fork1() Err#12 ENOMEM


A Good TRUSS output where printing works gives:

Quote:
13380/58: fork1() = 15517
15517: fork1() (returning as child ...) = 13380
: : :
15517: close(327) = 0
15517: close(331) = 0
15517: getdents64(4, 0xFF344000, 8192) = 0
15517: close(4) = 0
15517: fcntl(3, F_SETFD, 0x00000001) = 0
: : :
15517: execve("/usr/bin/sh", 0x00C91D80, 0x001627E0) argc = 3
15517: argv: /usr/bin/sh -c
15517: env LC_ALL=C /usr/bin/lpstat -a 141373p>/var/tmp/prn2759250395751942436xc
15517: resolvepath("/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
15517: resolvepath("/sbin/sh", "/sbin/sh", 1023) = 8
15517: stat("/sbin/sh", 0xFFBFF9E0) = 0



It works fine on our non-zone server which runs Solaris 10.

Any advice on Solaris/Java settings I should be looking at?

Thanks in advance
# 2  
Old 10-15-2009
so server 1 is your global zone and server 2 is your non-global zone? are you inheriting all default filesystems from the global zone? my guess here is you are trying to write to a read-only fs. by default inherit-pkg-dir use the following filesystems as read-only loopback fs:
  • /lib
  • /platform
  • /sbin
  • /usr

i also saw something like this with oracle on a zone. the option was to create a whole root zone.
# 3  
Old 10-15-2009
Sorry for the confusion with terminology, but, I am running one non-global zone with JBOSS App Server running as 2 separate instances (server 1 and server2) on the same Solaris server.

There are other zones on the server but for this application runs on one zone (accessing a database on another zone).
# 4  
Old 10-16-2009
If your application is failing on ENOMEM, you need either to add memory (real or virtual) to your system or reduce your application requirements.
# 5  
Old 10-16-2009
good point jiliagre. i found this as an interesting read and maybe something to get you into finding a solution: Mandalika's scratchpad: Siebel on Sun Solaris: Know the process resource limits
# 6  
Old 10-20-2009
Hi Guys

My point is that the application works correctly in a NON-ZONED Solaris 10 server with 2GB, but in a zoned environment I am getting the failure as stated (truss ENOMEM).

Are there any specific commands/settings I should be looking for at the Solaris level?

I start my JBoss instances with java settings:

Code:
 
$JAVA_HOME/bin/java \
-server \
-Djava.endorsed.dirs="$JBOSS_HOME/lib/endorsed" \
-Dsun.rmi.dgc.client.gcInterval=300000 \
-Dsun.rmi.dgc.server.gcInterval=300000 \
-verbose:gc \
-XX:PermSize=128m \
-XX:MaxPermSize=128m \
-XX:NewRatio=4 \
-XX:+PrintGCDetails \
-XX:+PrintGCTimeStamps \
-XX:+UseParallelGC \
-XX:ThreadStackSize=512 \
-Xms384m \
-Xmx768m \
 org.jboss.Main -b0.0.0.0 -c foo "$@"

Thanks for your help.
# 7  
Old 10-20-2009
Either your zone has its swap size capped and you need to increase that size or you have just not enough swap. You can increase its size easily by adding a swap file.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

3. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

4. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

5. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

6. Solaris

Update java version in Zone

I am using a solaris zone in Sun blade-T6320 which has a java version "1.5.0_18" i want to update it to 1.6.0.16 or higher , how can i do that , does i need to add the new java package to the global server or just instal it in the zone itself. do i need to remove the older version or and install... (1 Reply)
Discussion started by: Sojourner
1 Replies

7. Solaris

How to obtain DNS Zone transfer settings on Sun OS 5.7

I have an old Sun SparcStation 5 that is running Sun OS 5.7, I'm not sure which commands would allow me to obtain the DNS zone transfer settings? 1.) I'm needing to know if the zone transfers are enabled. 2.) If it is enabled, does it transfer to specific servers 3.) If so, how do I go about... (1 Reply)
Discussion started by: Fhistleb
1 Replies

8. Solaris

Creating A Solaris Zone - Unable to install - Are network settings required?

Hi i have created a solaris zone but have not yet connected any network cables for this new zone, can i set the zone up without running the command 'add net' and not adding an ip or physical interface? i tried to add dummy internet settings and get this zonecfg:coddr> add net... (4 Replies)
Discussion started by: newbiesolaris10
4 Replies

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies
Login or Register to Ask a Question