Solaris
Tags:
To trace a java thread from a thread dump to the corresponding thread on Solaris 10, you can find the LWP using pstack by converting the NID (which corresponds to the LWP ID on Solaris) and matching it up in the pstack output, or by finding the TID listed in the pstack output.
For example, I ran a thread dump and I want to trace this thread from the dump:
"ExecuteThread: '2' for queue: 'weblogic.kernel.System'" daemon prio=5 tid=0x00880588 nid=0x35 in Object.wait() [aba7f000..aba7fc30] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:429)
- theCamel's blog
- Add new comment
- Read more
- 1517 reads
Tags:
First, I made a few modifications to the nodemanager start/stop scripts:
(on weblogic 8.1)
in startNodeManager.sh, I added a -D tag to be able to easily spot the nodemanager process when doing a 'ps' by adding this line:
----------------------------------------------------------------------------
JAVA_OPTIONS="${JAVA_OPTIONS} -Dnodemanager"
----------------------------------------------------------------------------
and then in the actual java start commands, adding ${JAVA_OPTIONS} to each line that calls nodemanager:
- theCamel's blog
- 1 comment
- Read more
- 4705 reads
Tags:
These commands are meant to be used for testing, or to learn the stat commands. I would not run these on a production box and I would recommend having another shell open to the same box to allow for quick kills.
To saturate CPU:
(CAUTION! This will lay a heavy load on your CPU!)
------------------------------------------------------ while :; do :; done & ------------------------------------------------------
- Add new comment
- Read more
- 1695 reads
Tags:
Solaris Run-Levels
------------------
0 Go into firmware.
1 Put the system in system administrator mode. All local
file systems are mounted. Only a small set of essen-
tial kernel processes are left running. This mode is
for administrative tasks such as installing optional
utility packages. All files are accessible and no
users are logged in on the system.
2 Put the system in multi-user mode. All multi-user
environment terminal processes and daemons are
- Add new comment
- Read more
- 1634 reads
Tags:
Soft Partitioning with Disksuite (Solaris Volume Manager): --------------------------------- to create mirrored, soft-partitions: using these disks: c0t2d0 (36g) c0t3d0 (36g) (this example assumes that these two disks are non-root, and that disksuite is already installed and the required number of metadatabases already exist on the root disk(s).) # create 20gb soft-partition on c0t2d0s0 called d79 metainit d79 -p c0t2d0s0 20gb # encapsulate d79 and call that device d89 metainit d89 1 1 d79
- Add new comment
- Read more
- 2593 reads
Tags:
Replacing a Disk with DiskSuite (Solaris Volume Manager) 1. Check the status using metastat or metdb. 2. Record the disk partition layout: # prtvtoc /dev/rdsk/c1t3d0s0 > /var/tmp/c1t3d0s0.vtoc or # format specify disk (enter its number0: 10 format> partition parition> name Enter table name (remember quotes): "SDS ssa disk format" partition> format> save Saving new partition definition Enter file name["./format.dat"]: /etc/format.dat format> q 3. Shutdown the system and replace the disk.
Tags:
OpenBoot Commands
-----------------
# banner
this command shows the following systems hardware informatiion :
Model, architecture, processor,keyboard, openboot version, Serial no. ethernet address & host id.
# test floppy
test floppy disk drive
# test net
test network loopbacks
# test scsi
test scsi interface
# test-all
test for all devices with selftest method
# probe-scsi
Show attached SCSI devices
# probe-scsi-all
- Add new comment
- Read more
- 1774 reads
Tags:
Mounting CDROM on remote server
===============================
For the server:
1. # vi /etc/dfs/dfstab
share -F nfs -o ro /cdrom/cdrom0
2. # shareall
3. # share
4. # /etc/init.d/nfs.server stop
5. # /etc/init.d/nfs.server start
For the client:
1. When automountd is NOT running:
2. # mount -F nfs servername:/cdrom/cdrom0 /mnt/cdmount
3. # cd /mnt/cdmount
4. # ls
1. When automountd is running:
2. # cd /mnt/servername/cdrom/cdrom0
- Add new comment
- 1719 reads
