- What are clusters?
Ø Cluster is a logical set of multiple Weblogic Server instances running simultaneously across different geographies and working together to achieve high availability and scalability
Ø Weblogic Server clusters support multiple algorithms for load balancing and failover: round-robin, weight-based, random, round-robin-affinity, weight-based-affinity, and random-affinity(By default, a Weblogic Server cluster will use the round-robin method)
- What is session replication?
Ø Weblogic Server provides clustering support for servlets and JSPs by replicating 'HTTP session state' of clients that access servlets and JSPs through a cluster service
Ø Weblogic Server can use 'memory, file based and database' persistence for storing session information
- How you deploy your applications on weblogic server?
Ø Auto Deployment
Ø Command line – weblogic.deployer
Ø ANT / WLST
- What are stating modes are available in Weblogic Server ?
Ø Stage mode: Administration Server copies the deployment files from their original location on the Administration Server machine to the staging directories of each target server
Ø External Stage: target servers deploy using local copies of the deployment files, here the Administration Server does not automatically copy the deployment files to targeted servers in external_stage mode ; instead, you must copy the files to the staging directory of each target server before deployment.
Ø No Stage: The Administration Server does not copy deployment unit files; instead, all servers deploy using the same physical copy of the deployment files, which must be directly accessible by the Administration Server and target servers.
- What is a Thread dump? How will you take in unix/linux and windows?
Ø A Java thread dump is a way of finding out what every thread in the JVM is doing at a particular point in time. This is especially useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck.
Ø Linux : kill -3 <ps_id>
Ø Windows (console mode) : crtl+break
Ø Windows (service) : beasvc -dump -svcname:mydomain_myserver
- How should u look for in a Thread Dump?
Ø Always have 7-10 thread dumps taken in an interval of 5 seconds each
Ø A thread dump will give you an insight on what every thread in the JVM is currently doing
Ø While analyzing the thread dump you should be looking for stuck threads (threads which have not moved from a long time) – could be a resource (file / db) lock not allowing the thread to complete the task and free the monitor
Ø Look for thread locsk(if two threads store references to different objects into the same reference value, the variable will subsequently contain a reference to one object or the other, not a reference to some other object or a corrupted reference value)
Ø Look for recursive loops in application / server code traces, usually hampers server performance by utilizing CPU
- What is difference between 8.1 and 9.2, 10.x versions?
Ø 8.1 uses JDK 1.4.2 ; 9.2/10.0 uses JDK 1.5 ; 10.3 uses JDK 1.6
Ø 8.1 uses execute worker threads ; 9.2/10/10.3 uses work manager for work load distribution within the server
Ø Directory structures
Ø Console applet bases in 8.1 ; while it is portlet based in later versions
Ø 8.1 has one big config.xml ; later versions have basic info in config.xml and subsystem level info in different directories(jms, jdbc, etc)
- What are multi pools / multi data sources?
Ø MultiPools are 'pools of connection pools' that you can set up according to either a high availability or load balancing algorithm
Ø You can use a MultiPool in the same manner that you use a connection pool.
Ø When an application requests a connection, the MultiPool determines which connection pool will provide a connection, based on the selected algorithm
- What is IIS server?
Ø IIS is a webserver developed by Microsoft which is shipped with Windows NT/2000/2003 +
Ø Available versions : 5, 6, 7
Ø Usually used for hosting static HTML pages and used as an aplkication server for ASP.NET application developed using DOT NET framework 1+.
Ø Can be used as a proxy server for routing requests to weblogic server
- Where are user credentials stored?
Ø User credentials are stored in the 'boot.properties' file , which has its encryption key in the 'SerializedSystemIni.dat'
Ø If you use a script to start a server instance, it is recommended that you do not use this technique because it requires you to store an unencrypted password in the startup script.
- Suggest few JVM tuning parameters.
Ø Initial heap size and maximum heap size to be same (-xms and –xmx):T his ensures less is spend by the CPU to allocate memory in rutime
Ø Young generation (-XX:MaxNewSize): The bigger the young generation, the less often minor collections occur. However, for a bounded heap size a larger young generation implies a smaller tenured generation, which will increase the frequency of major collections. The optimal choice depends on the lifetime distribution of the objects allocated by the application.