YOUR FEEDBACK
The Cloud Wars - Is Guitar Hero a Cloud?
Roland Judas wrote: I am following the cloud discussions for some months n...


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Deploying GlassFish v2 Virtualization in the Solaris Container
OS virtualization is done by enabling multiple isolated and secured systems in one physical server

Digg This!

Page 2 of 3   « previous page   next page »

Solaris Container = Zone + Resource Management

The Solaris Resource Management and Zones are the basic functions that form the Solaris Container. Zones provide isolation that is scalable, flexible, and lightweight for the Solaris O/S services. Zones are like having another Solaris instance inside the Solaris O/S. Zone can be categorized into two types: non-global zone and global zone (see Figure 1).

Resource Management is a policy that enables the Solaris O/S to manage and compute resources including partitioning, utilization allocation, and resource allocation on the fly through the administrative function / command.

Prerequisite
This article will walk you through how to deploy the GlassFish v2 application server under the Solaris Container. The zone will only use the allocated CPU resource in a specific resource pool. You will need Solaris 10 O/S installed on your box, and the GlassFish v2 installation package for Linux. You can download the software from the following sites:

After you have installed the Solaris 10 O/S in your box follow these steps to enable your container.

1.  Partitioning the CPU Resource
Solaris 10 O/S provides a feature for creating a resource pool using the pool configuration administration command. This feature enables the system administrator to create a CPU set and allocate the CPU available on the hardware level. In order to configure the resource pool we will need to enable the pools daemon.

   svcadm enable svc:/system/pools:default

After you run that command, check the service status using the svcs command. We will start by looking at the current configuration of the pool. This information can be displayed using the pooladm command. Here is an example of the current resource pool.

system default
...
    pool pool_default
      ...
      pset pset_default

    pset pset_default
      ...
      cpu
        int    cpu.sys_id 1
        string cpu.comment
        string cpu.status on-line
           cpu
        int    cpu.sys_id 0
        string cpu.comment
        string cpu.status on-line

The default pool for the global zone named pool_default is holding the CPU set named pset_default. Currently the CPU set of pset_default is allocated with two CPUs (cpu.sys_id=0, and cpu.sys_id=1). In this example we will be partitioning the CPU with one CPU to allocate the pool_glassfish and the other still in the pool_default. Follow the steps below to create the pool_glassfish

a.  Generate /etc/pooladm.conf

pooladm -s

b.  Create a CPU set as pset_glassfish and assign cpu.sys_id=0 to pset_glassfish

poolcfg -c 'create pset pset_glassfish (uint pset.min=1; uint pset.max=1)'

pooladm -c

c.  Create a pool with pool_glassfish as the label

poolcfg -c 'create pool pool_glassfish'

pooladm -c

d.  Associate the CPU set (pset_glassfish) to the pool (pool_glassfish)

poolcfg -c 'associate pool pool_glassfish (pset pset_glassfish)'

pooladm -c

In order to verify the configuration modification we can use the pooladm command. The amazing part about this configuration process is that the modification can be done online without rebooting the operating system. The example below is the result of the changes we have done:

system default
...

    pool pool_glassfish
      ...
           pset pset_glassfish

    pool pool_default
        ...
           pset pset_default
        pset pset_glassfish
        ...

      cpu
        int    cpu.sys_id 0
        string cpu.comment
        string cpu.status on-line

    pset pset_default
      ...

      cpu
        int    cpu.sys_id 1
        string cpu.comment
        string cpu.status on-line



Page 2 of 3  
« previous page   next page »

About Sonny Hastomo
Sonny Hastomo is an IT architect at Sun Microsystems, Indonesia, for the telecommunication industry division. His currently is focusing on providing solution design, sizing, implementation, consulting services, and quality support to customers in their evaluation of their IT challenges.

Sathyan Catari wrote: You may want to refer to this Article for Installing GlassFish Application server on Zones. http://developers.sun.com /appserver/reference/tech art/glassfishsolariszones / Thanks
read & respond »
LATEST JAVA STORIES & POSTS
Saving Your Investment: Transforming J2EE applications into Web 2.0 using GWT
The pressure is on to keep pace with Web 2.0 entrants into the marketplace. Rewriting is expensive; adding AJAX widgets results in a complex, unmaintainable application. Both require you to hire scarce JavaScript developers. Google Web Toolkit -- the SDK that allows you to write
WSRP Really Works! - Part 2
A standard from OASIS called Web Services for Remote Portlets (WSRP) is used so portlets can be decoupled from a portal. In part one (JDJ, Volume. 13, issue 3) of this article, we introduced the relevant standards and specifications and then demonstrated WSRP's capabilities by co
Adobe's Kevin Lynch and Microsoft's Scott Guthrie to Keynote AJAX World RIA Conference & Expo
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe launched AIR 1.0 in February '08 and Microsoft launched Silverlight (September '07). At the 6th International AJAXWorld RIA Conference & Expo in October SYS-CON Events is delighted
Sun Expects Q4 Earnings Above Estimates
On Tuesday evening Sun issued a fourth-quarter guidance range largely above analysts' estimates. The company pre-announced that revenue for its fiscal fourth quarter ended June was $3.725 billion to $3.8 billion, with gross margin in the 44-45% range. Sun expects non-GAAP profits
Virtualization Conference Keynote Webcast Live on SYS-CON.TV
Brian Stevens, the Chief Technology Officer and Vice President of Engineering of Red Hat, delivered his Virtualization Keynote 'The Future of the Virtual Enterprise' at SYS-CON's Virtualization Conference & Expo 2007 West in San Francisco. 'Virtualization is the hottest subject
The Beauty of JavaScript
JavaScript is one of the most interesting and misunderstood programming languages in common use today. Most developers will go their entire careers without realizing its full potential. It's not often that you get a language that supports the feature set that JavaScript does, whi
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

SPONSORED BY INFRAGISTICS
SOA in a JVM: OSGi Service Platform - A Dynamic Component System for Java
There are many forces that influence technological evolution. After a decade of building enterprise
AJAX and Enterprise RIA Tools - JSF, Flex, and JavaFX
2008 is going to be an important year for Rich Internet Applications. Most organizations are deliver
Final Voting Phase on OpenAjax Browser Wishlist
The OpenAjax Alliance is developing an Ajax industry wishlist for future browsers, using a dedicated
AJAX World RIA Conference News - Netflix UI Guru To Present on Crafting Rich Web Interfaces
In every field of design one of the first things students do is learn from the work of others. They
Infragistics Releases CTP UI Components for Microsoft Silverlight Beta 2
Infragistics announced the availability of two Community Technology Preview (CTP) User Interface (UI
Yahoo User Interface 2.5.2 Released
The YUI development team has released version 2.5.2; you can download the new release from SourceFor
ADS BY GOOGLE
BREAKING JAVA NEWS
Domark International, Inc. Completes Its Acquisition of Javaco, Inc.
Domark International, Inc. (OTCBB:DOMK) announced today that it has completed its acqui