List of the commands for Weblogic for interview
1. How to set the Class Path?
WL-Home\servers\bin SetwlsEnv.cmd (windows)
WL-Home\servers\bin SetwlsEnv.sh (Unix)
2. How to set Domain?
WL-Home\servers\bin SetDomainEnv.cmd(windows)
WL-Home\servers\bin SetDomainEnv.sh(Unix)
3.How to increase WLS Memory?
set minimum and maximum to same size
$ Java ...-ms32m -mx32m -> it will allocate 32 megabytes.:Xms2048m - Xmx2048m
4. How to increase Permgenspace ?
Increase the max permgen space -XX :Maxpermsize=256m (default =64m)
5.How to Enable verboseGC?
Java_Options = -"Xverbose:Memory,gcreport,gcpause-xverbosetimestamp"
6.How to Enable core dump?
sun JVM; -xx:+ShowMessageBoxOnError
Jrockit JVM: -Djrockit.WaitOnError Windows
7.How to check whether server is listening on the specified port number or not?
telnet <IP> <Port>
Ex: telnet 199.129.212.1 8080
8.How to check server is alive or not?
Ping <IP>
Ex: Ping 199.129.212.1
9.How to start Managed Server Independence Mode
nohup./StartManagedWeblogic_ManagedServername.sh&
10.How to check weblogic server Process ID?
usr/ucb/ps -auxwww | grep java
11.How to check port already in use or not?
netstat -na | grep <port>
lsof -itcp:7001
12.How to check multi cast test in cluster ?
Javautils.multicast Test -n <name> -a <Multi cast-address> -P <multicast port>s send
13.How to access admin console?
http/https://Hostname(or)IP:port/console
Ex:http//localhost:7001/console
14.How to know the weblogic version?
Adminconsole>Environment>servers>Monitoring> weblogic version
commandline:
Go to your domain/bin
run setdomain (cmd)(bin)
run "Java weblogic.version"
15.How to take thread dump?
Ps -ef | grep java
kill -3 <PID>
windows: ctl + Break
Better way to take thread dump use
jstack <PID>
16. How to start the servers?
Admin server: ./startweblogic.sh\
Managed server: ./startmanagedweblogic.sh
Node Manager: ./startnodemanager.sh
17.How to copy file from server to other server.
scp <filename> <id at destination>@<destination server>:<on which path we copy files
18.How do you list the number of all open files at any given moment?
lsof
19.Do you know how to check the elevated privileges that you hold?
sudo -I
20. How to check list of all all files?
ls-ltr
Comments
Post a Comment