How to get a Thread Dump from Windows Service?
We're running WLS 8.1 as a Windows Service, but we can't seem to generate a Thread Dump when the server locks up (apparently).
Can anybody recommend a wrapper that will do this?
--Kurt
Hi,
Please refer to the following URL for more information http://e-docs.bea.com/wls/docs81/adminguide/winservice.html
To cause the WebLogic Server instance to print a thread dump to standard out, do either of the following:
Use the weblogic.Admin THREAD_DUMP command. For more information, refer to "THREAD_DUMP" in the WebLogic Server Command Reference.
Open a command prompt and enter the following command:
WL_HOME\bin\beasvc -dump -svcname:service-name
where WL_HOME is the directory in which you installed WebLogic Server and
service-name is the Windows service that is running a server instance.
For example:
D:\bea\weblogic81\server\bin\beasvc -dump -svcname:mydomain_myserver
Cheers
Raj
Similar Messages
-
How to get a thread dump from Weblogic 9.1
Hi All,
Can someone please walk me through how to configure a WLS9.1 server to generate thread dumps. Ideally I'd like to do this via the admin console. I read about the MagicThreadDumpFile property, but can't see where/how to set it.
Many Thanks
StuartI only know how to do this in WLS 8.1, but it will likely work in 9.1. On UNIX, you can send a kill -QUIT to the pid and it will dump threads to standard output for the server. You can also use weblogic.Admin THREAD_DUMP (http://e-docs.bea.com/wls/docs92/admin_ref/cli.html#wp1197887) or whatever is the equivalent in WLST now that weblogic.Admin is deprecated in 9.x. I'm guessing it is the threadDump() method documented at http://e-docs.bea.com/wls/docs92/config_scripting/reference.html#wp1104314.
I know of no way to do this through the console, unfortunately. -
How to get a thread dump, in case of an IDE freeze
When you're working with the IDE and if it either freezes or becomes sluggish for no apparent reason, it's recommended to generate a thread dump, and report it to Studio feedback alias ([email protected]) with a description of what happened and attach the dump to it.
A thread dump is an invaluable source of information to IDE developers when investigating deadlocks and some performance issues. It is a textual dump of all active threads and monitors of Java apps running in a Virtual Machine.
The ways to generate a thread dump differ depending on the platform:
* Windows systems
Press Ctrl-Break in the command console you used to start the IDE.
You won't be able to see the console in case you started the IDE using the default desktop icon created by the IDE installer. To be able to generate the thread dump, you must launch the IDE using a console window (invoke Command Prompt, go to {studio-install-dir}/bin and type runide.exe), or configure the desktop shortcut properties to launch the runide.exe program instead of the default runidew.exe.
Note: You should increase the screen buffer size of the command prompt, so that it could retian the entire thread dump output. To do that, on the command prompt where IDE is running, open the properties dialog box by right clicking on the titlebar and selecting 'properties'. Then select the 'layout tab' and increase the 'screen buffer size' parameters to - width - 200, Height - 4000.
* Unix systems
Press Ctrl-\ in the terminal console you used to start the JSE.
Alternatively, you can also generate a thread dump by sending the QUIT signal to the Java VM running the JSE
kill -QUIT process_id
where process_id is the process number of the respective java process.
-------Here is a sample thread dump -------
Full thread dump Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode):
"Text-Layout" daemon prio=2 tid=0x0886ebd8 nid=0x4e4 in Object.wait() [9e8f000..9e8fd94]
at java.lang.Object.wait(Native Method)
- waiting on <0x11730910> (a org.netbeans.editor.view.spi.ViewLayoutQueue)
at java.lang.Object.wait(Object.java:429)
at org.netbeans.editor.view.spi.ViewLayoutQueue.waitForTask(ViewLayoutQueue.java:128)
- locked <0x11730910> (a org.netbeans.editor.view.spi.ViewLayoutQueue)
at org.netbeans.editor.view.spi.ViewLayoutQueue$LayoutThread.run(ViewLayoutQueue.java:182)
"Compilation" daemon prio=2 tid=0x0883d878 nid=0xb1c in Object.wait() [9c8f000..9c8fd94]
at java.lang.Object.wait(Native Method)
- waiting on <0x1143dde0> (a java.util.LinkedList)
at java.lang.Object.wait(Object.java:429)
at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.nextJobAndTask(CompilationEngineImpl.java:162)
- locked <0x1143dde0> (a java.util.LinkedList)
at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.run(CompilationEngineImpl.java:175)
"TimerQueue" daemon prio=5 tid=0x03575478 nid=0xb18 in Object.wait() [988f000..988fd94]
at java.lang.Object.wait(Native Method)
- waiting on <0x10d4af60> (a javax.swing.TimerQueue)
at javax.swing.TimerQueue.run(TimerQueue.java:231)
- locked <0x10d4af60> (a javax.swing.TimerQueue)
at java.lang.Thread.run(Thread.java:534)
"AWT-EventQueue-1" prio=7 tid=0x0344fae0 nid=0xb14 in Object.wait() [3caf000..3cafd94]
at java.lang.Object.wait(Native Method)
- waiting on <0x10d4afe8> (a java.awt.EventQueue)
at java.lang.Object.wait(Object.java:429)
at java.awt.EventQueue.getNextEvent(EventQueue.java:339)
- locked <0x10d4afe8> (a java.awt.EventQueue)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:162)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)You can get a thread dump (Windows only) whitout any preparation. Simply use the Stack Trace tool from this web site:
http://tmitevski.users.mcs2.netarray.com
It works on Windows services too. -
How to get 'clover.cmd' running as Windows service?
Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
Anyone know how to set it to do this? I'm on InDesign CS6 (server).
thanks.This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.
-
How to get nested JSON structure from OData service result
Hi all,
This is what I have done :
I have developed OData service where I am following below steps :
1. Created Stored procedure for the logic
2. Created scripted calculation view and call stored procedure from the view.
3. Created OData Service where I am calling calculation view with multiple parameters.
Every thing is working fine and I am getting proper JSON Result which all the attributes that I am returning from the view in flatten structure.
Additional requirement:
On top of this I have additional requirement where I want to get various aggregation or counts.
For example : from view I am getting all the customers result as result set and I also want some summary level information along with that such as :
1. Total Number of Records
2. Total VIP Customers
3. Total Individual Customers
4. Total Business Customers
Above counts can not be each records level information so I need this details in my OData Service result as separate summary section like nested JSON structure.
For example :
d: {
results: [
__metadata: {
uri: "http://servername:8000/testmulti.xsodata/calmultiview1('123456')",
type: "Cust.Multiview1.calmultiview1Type"
aggregation: {
totalrecords: "",
totalVIPCustomers: "",
totalIndividualCustomers:"",
totalbusinesscutomers:""
ID: "123456",
ENT_ID: 1234,
FIRST_NM: "ABC",
LAST_NM: "XYZ",
CITY: "DELHI",
In above example like _metadata , I am asking how to get aggregation section also in the JSON result?
aggregation: {
totalrecords: "",
totalVIPCustomers: "",
totalIndividualCustomers:"",
totalbusinesscutomers:""
Please suggest best possible way to implement this kind of requirements.
Thanks
- DharmeshDon't expect that OData can help you for this. Still you can try the following.
Create a XSJS service where you can execute your procedure manually and get the aggregation as well. From the XSJS , you can loop over the result sets and build your corresponding JSON format. But, you can not implement the features of OData, as the return would be "just" a JSON.
in any way you can establish an association with your main entity and aggregation entity(I am Sure, the worst case), you can get both in the same payload.
Sreehari -
How to get client Ip address from web service
Hello folks,
I am quite new to web service and developing a web service using netbeans6.0 IDE, where i have to know which client called/used the service, After googling i got code snippet like below
inject a WebServiceContext instance into your WebService class, and use it in each WebMethod to get the current request's MessageContext Map. Get the SERVLET_REQUEST item from that, cast as an HttpServletRequest. From that HttpServletRequest, you can invoke getRemoteAddr() to get the client's IP.
@WebService
public class MyService{
@Resource
WebServiceContext wsCtxt;
@WebMethod
public void myWebMethod(){
MessageContext msgCtxt = wsCtxt.getMessageContext();
HttpServletRequest req = (HttpServletRequest)msgCtxt.get(MessageContext.SERVLET_REQUEST);
String clientIP = req.getRemoteAddr();
}But it throws error in my PC like
Service invocation threw an exception with message : null; Refer to the server log for more details
Exceptions details : java.lang.reflect.InvocationTargetExceptionIs there any way that says client pc ip address using netbeans6.0 Or what went wrong in my code?
Largely Thanks in advance.
SRI.I am afraid,
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:340)
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121)
at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:311) ... 35 more Caused by: javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117) at $Proxy102.processMessage999(Unknown Source) ... 40 more Caused by: java.lang.NullPointerException at org.shar.Handle.processMessage999(Handle.java:120) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:361) ... 2 more -
How to get available fields list from web service
hi,
i'm using webservices to create ,update and deleting a alead.
what i want is i want all the id of available fields in my account ?
how acn i get those id's ?
regards,
praneethhi,
thank u for reply.
i would like to create a servlet to insert alead to OCRM,
but for that the user selects the fields he want to insert and provides corresponding values to those selected fields.
so that i need to display all the fields available in my OCRM account.
regards,
Praneeth -
How to get all the values from the dropdown menu
How to get all the values from the dropdown menu
I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
How do I get number of item is selection dropdown?
How do I extract a ?name? for each value, one by one?
How do I change a selection by referring to particular index of the item in a dropdown menu?
Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
Message was edited by: testtestThe findElement method allows various attributes to be used to search. Take the following two examples for the element below:
<Select Name=ProdType ID=testProd>
</Select>
I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
If I want to search by id I could do the following:
Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
You can use the FindElement to grab links, text boxes, etc.
The next example grabs from a link on a page
Home
Set x = RSWApp.om.FindElement("Home","A","innerText")
I hope this helps clear it up. -
How to get carrier company name on windows phone 8.1?
how to get carrier company name on windows phone 8.1?
excuse me, i referrer the link http://stackoverflow.com/questions/26973111/get-carrier-name-cellular-mobile-operator-name-using-windows-phone-8-1 to
modify my universal app.
but i always get 0 count from the GetNetworkNames() method.
if my sim card is for 3G, but i setting 4G in highest connection speed. i got the "the pipe is being closed".
how can i solve the problem? thank you. -
How to get auto proxy configuration from plugin?
I need to retrieve the name of the client's proxy server to pass it along to my signed applet (because it doesn't seem to be getting the information automatically despite the fact that the java plugin is set to the use the browser settings for proxies).
The Java Plugin loads the proxy server information based on the browser preferences, but I haven't figured out how to retrieve that proxy information from the Plugin itself. Sometimes the javaplugin.proxy.auto.url system property is null, even if the browser (MSIE) is configured to use an auto-configuration script/url for the proxy server configuration. I can see in the Java Console that the plugin knows the auto-config url, so how can I access that property from within my applet?
Even if javaplugin.proxy.auto.url is not null, I don't know how to call the javascript function at that URL from within the applet to get the proxy server host name and port.
Does anyone know how to get the proxy information from the plugin?Thank you! Indeed, the answer was there, but I hadn't been able to find it earlier (I guess I was searching on the wrong forums). For those who might be interested, here's the thread that helped:
http://forum.java.sun.com/thread.jsp?forum=30&thread=281981 -
Doing a thread dump from a script?
Does anyone know if I can do a thread dump from a script and it will output it
to standard output instead of the weblogic logs? If so, how?
I want to script something, but it going to the weblogic logs is kinda a pain..
Weblogic 7ryan upton <ryan.upton@post_to_group.com> wrote:
Frank wrote:
Does anyone know if I can do a thread dump from a script and it willoutput it
to standard output instead of the weblogic logs? If so, how?
I want to script something, but it going to the weblogic logs is kindaa pain..
Weblogic 7Frank,
You can supply THREAD_DUMP as an option with weblogic.Admin and script
that out. When you say "and it will output it to standard output" I'm
a little confussed, the output goes to the server's stdout by default,
do you mean stdout from where the script is executed?
~RyanMy weblogic startup script >> outputs to another log file...when I use the THREAD_DUMP
option in the weblogic.Admin class, it dumps it to that...However...what I wanted
was to write a separate script to use weblogic.Admin and output to STDOUT of that
script....Is that possible. -
Is there a way from within a java program to get a thread dump of the jvm? I want to write some code that watched for a certain condition, then immediatly halts the jvm and dumps all the thread state.
Thanks for your ideas...Thanks, but... those methods are useful for getting a status of the current thread, or of other threads in your thread group, but that is not I'm after.
What I need is similar to the effect of sending a SIGQUIT signal to the JVM, causing it to stop and dump all the thread state. I want to trigger that from code running in the JVM.
Basically I am trying to track down a bug in a complex server application, where on a dual processor box (only!), the current time zone gets reset to GMT at some point. It happens at some non-deterministic point in the application's lifetime. The app is multithreaded. I was going to just write a watchdog thread that continually monitored the timezone, then when the timezone changed the watchdog would dump all thread states. After doing this a few times I was hoping to see a pattern in where the various threads were executing. Needless to say, I have examined all the code, and nothing is setting the timezone explicitly. -
I bought a new, faster, more storage Windows 8 computer.
I had 40,000 pix on old computer tagged with names, event, location, date with PE 11. Also several projects involving hundreds of pix.
Carbonite restored all files (250 gig) from old computer to new, and their tech support says they all are on the new computer.
I bought the new PE 12 and installed it on new computer. It has only found 4,000 pix. I don't at all like PE 12 after enjoying PE2-11 and managing all my pix with it. PE11 was clearer in the pix presentation.
Apparently when imported to the new computer, I lost the tags that went to events, location, and the person tags did not separate family from friends etc. I can't even find my projects.
I was so frustrated with PE12, that I installed PE11, but everytime I try to open the Organizer, it doesn't open.
Help. I am so frustrated. I am pretty sure before I made the transition that I had written all tags to files. When I put PE11 on the new computer, why won't it give me what I had on the old.
This is probably my 10th generation computer change, and I never had such problems before with PE.I am using 10 and 11 instead of 11 and 12. I tried to go back and edit,
but couldn't figure out how. Sorry, typing errorC.
In a message dated 2/6/2013 7:02:33 P.M. Eastern Standard Time,
[email protected] writes:
Re: How can get 40,000 pix from old computer restored by Carbonite to new
computer into PE 11 or 12?
created by Jeff A Wright (http://forums.adobe.com/people/JeffAWright)
in Photoshop Elements - View the full discussion
(http://forums.adobe.com/message/5050443#5050443) -
How to get the return values from a web page
Hi all :
how to get the return values from a web page ? I mean how pass values betwen webflow and web page ?
thank you very much
Edited by: jingying Sony on Apr 15, 2010 6:15 AM
Edited by: jingying Sony on Apr 15, 2010 6:18 AMHi,
What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
Regards,
Karri -
How do you print a pdf from Windows 8?
How do you print a pdf from Windows 8?
What is your operating system?
Is this a local or online PDF file? If online, in what browser?
Maybe you are looking for
-
Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?
-
MS Intelli Explorer Bluetooth Mouse needs to be setup everytime
I bought MS intelli explorer bluetooth mouse. This is my first bluetooth mouse. Everytime I start up my imac, I have to setup/locate the mouse. This is very annoying as I have to plug in another mouse to navigate to discover the bluetooth mouse. Isnt
-
Error #2038 - unable to install CS6 on 10.8.3 brand new iMac
I have attempted to install CS6 creative suite from both the Adobe site and also from an .iso file - both times, it fails to install. Instead, I get the following (and cryptic) error message: Sorry, an error has occurred. The application could not be
-
Hello all. I am trying Outlook 2007 (now there is a connector for that). It seems ok for emails, but calendaring is still a bit confusing. Is there a way I can see another person's calendar, as I do from the Collab portal? Looks like I can only see e
-
Lombard Power socket issues?
Recently I have been experiencing problems with my Lombard Powerbook, when I plug it in I have to wiggle the power plug to get it to boot even then it won't stay on unless I hold it. I've had the Powerbook in bits and it seems the power input on the