[zones-discuss] Java out of memory error in a zone

2008-12-07 Thread Ian Matchett
On Solaris 8/07 a customer is running in a zone but java 1.5 is getting
out of memory error.


Top shows 32GB RAM and 5GB free.


Even Java -version get this error.
Can we run zonestat on Solaris 10?

If not what commands inside a zone can we used to figure
free RAM and swap.
and free CPU cycles.

What commands should we get the sysadmin run in the global zone to 
understand the system  and zonecfg?



IanM

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Java out of memory error in a zone

2008-12-07 Thread Nicolas Dorfsman

Le 7 déc. 08 à 18:26, Ian Matchett a écrit :

 Thanks

 However will prstat -Z tell me much in the zone?

Good question.
I need to check.

 Basic problem is the user did not know he was in a zone.

 Told me he had 32GB RAM.

 Sort of true...





 Nicolas Dorfsman wrote:
Hi Ian,


 Le 7 déc. 08 à 17:15, Ian Matchett a écrit :

 On Solaris 8/07 a customer is running in a zone but java 1.5 is  
 getting
 out of memory error.


 Top shows 32GB RAM and 5GB free.

 Did you check the JVM memory parameter ?
 In 80% cases, java out-of-memory error are due to too short JVM,  
 which is configured independently than the physical machine.

 Even Java -version get this error.

 Huh. Ok. So it should be something else... :)


 Can we run zonestat on Solaris 10?

 If not what commands inside a zone can we used to figure
 free RAM and swap.
 and free CPU cycles.

 What commands should we get the sysadmin run in the global zone to
 understand the system  and zonecfg?

 Check prstat -Z

 Nicolas




 01010101 01001110 01001001 01011000
 Nicolas Dorfsman
 [EMAIL PROTECTED] / [EMAIL PROTECTED]
 Phone: +33 6 7981 4486
 GoogleTalk/jabber : [EMAIL PROTECTED]

 http://www.guses.org - French Speaking (Open)Solaris User Group
 http://www.solaris-fr.org  - French OpenSolaris Wiki







___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Java out of memory error in a zone

2008-12-07 Thread Jeff Victor
On Sun, Dec 7, 2008 at 11:15 AM, Ian Matchett [EMAIL PROTECTED] wrote:
 On Solaris 8/07 a customer is running in a zone but java 1.5 is getting out 
 of memory error.

The fact that it's running in a zone is irrelevant unless the software
is trying to modify the kernel, drivers, etc. This can be demonstrated
by running it once in the global zone, or by solving the real problem.

 Top shows 32GB RAM and 5GB free.

 Even Java -version get this error.
 Can we run zonestat on Solaris 10?

Yes. It is open-source, unsupported software, but I have tested it on
a couple versions of Solaris 10. If there is a problem, please report
it here. Please use the latest version, 1.3.

 If not what commands inside a zone can we used to figure free RAM and swap.
 and free CPU cycles.

 What commands should we get the sysadmin run in the global zone to
 understand the system  and zonecfg?

rcapstat -z
shows the RAM cap currently in effect and how much is being used.

-- 
--JeffV
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] [pkg-discuss] problem creating zones in opensolaris - IPS brand

2008-12-07 Thread ramanujan oops
On Sat, Dec 6, 2008 at 4:15 AM, Shawn Walker [EMAIL PROTECTED]wrote:

 What's the output of pkg version ?



 Sun Microsystems Inc.   SunOS 5.11  snv_86  January 2008
 # bash
 bash-3.2# pkg version
 d974bb176266
 bash-3.2#


I understand that this is a pretty old version, I tried creating the zone in
a upgraded env:


bash-3.2# zoneadm -z small-zone install
A ZFS file system has been created for this zone.
Error: unable to determine global zone boot environment.
bash-3.2# pwd
/droot
bash-3.2# pkg version
216d2efd0c27
bash-3.2# beadm list
BEActive Mountpoint Space  Policy Created
---- -- -  -- ---
opensolaris   -  -  63.95M static 2008-11-20 09:34
opensolaris-1 NR /  5.63G  static 2008-11-20 11:45
opensolaris-2 -  /tmp/tmpbbuFCO 262.5K static 2008-11-27 15:42
bash-3.2# hostname
opensolaris2
bash-3.2#


I'm stuck here, your inputs are greatly appreciated..




 ramanujan oops wrote:

 Posted originally in zones-discuss forum..

 Reposting with pkg-discuss in loop as the error message is coming out of
 pkg client..

 Request you to kindly provide your inputs and help me troubleshoot this.

 regards,
 Ram

 On Thu, Dec 4, 2008 at 8:46 PM, ramanujan oops [EMAIL PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:

Hi,

 I'm not able to generate 'IPS brand' local zones on a
opensolaris box. Please find the relevant screen logs below and
kindly let me know where I'm going wrong..

bash-3.2# zonecfg -z small-zone info
zonename: small-zone
zonepath: /zone/small-zone
brand: ipkg
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
bash-3.2#

bash-3.2#
bash-3.2# pkg refresh --full
bash-3.2# pkg authority
AUTHORITY   URL
localhost-stbrepo   http://localhost:1/
opensolaris.org http://opensolaris.org (preferred)
 http://pkg.opensolaris.org:80/

bash-3.2# zoneadm -z small-zone install

  Image: Preparing at /zone/small-zone/root ... done.
Catalog: Retrieving from http://pkg.opensolaris.org:80/ ... done.
 Installing: (output follows)
Creating Plan |Traceback (most recent call last):
  File /usr/bin/pkg, line 1440, in ?
ret = main_func()
  File /usr/bin/pkg, line 1406, in main_func
return install(img, pargs)
  File /usr/bin/pkg, line 445, in install
verbose = verbose, noexecute = noexecute)
  File /usr/lib/python2.4/vendor-packages/pkg/client/image.py,
line 1282, in make_install_plan
ip.evaluate()
  File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py,
line 344, in evaluate
self.evaluate_fmri(f)
  File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py,
line 269, in evaluate_fmri
self.evaluate_fmri(cf)
  File /usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py,
line 187, in evaluate_fmri
m = self.image.get_manifest(pfmri)
  File /usr/lib/python2.4/vendor-packages/pkg/client/image.py,
line 516, in get_manifest
m = self._fetch_manifest(fmri)
  File /usr/lib/python2.4/vendor-packages/pkg/client/image.py,
line 468, in _fetch_manifest
mcontent = retrieve.get_manifest(self, fmri)
  File /usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py,
line 81, in get_manifest
raise NameError, could not retrieve manifest '%s' from '%s' % \
NameError: could not retrieve manifest
'[EMAIL PROTECTED]' from
'http://pkg.opensolaris.org:80'

bash-3.2# zfs list | grep zones
rpool/zones18K32.0G
18K  /zones
bash-3.2#



 

 ___
 pkg-discuss mailing list
 [EMAIL PROTECTED]
 http://mail.opensolaris.org/mailman/listinfo/pkg-discuss



 --
 Shawn Walker

___
zones-discuss mailing list
zones-discuss@opensolaris.org