Using jconsole with cf8
does anyone know of a way to get jconsole working with CF8? i
tried adding the appropriate params into the jvm options, but when
i open jconsole it doesn't show up.
thanks for any advice.
Marc
Sweet, thanks Tom. I run CF under a different account than my
login so I was
trying to get it working by connecting to it remotely. didn't
even think
about trying it with the PID b/c of the login stuff, but it
definitely works
when i change CF login to my logged-in account.
it's weird that I can't get it working remotely though. i
specify a port,
tell it not to use authentication, but i just can't get in. I
tried doing it
with authentication as the docs explain, but that didn't work
either. very
weird.
but hey, no matter, because this was what i needed. thanks
again!
"TomD_2" <[email protected]> wrote in message
news:f9vel9$4ng$[email protected]..
> Find the PID of the JRun process and start jconsole with
this as an
> argument.
>
> For example (Windows): if TaskManager shows that 2831 is
the PID for the
> jrun.exe process,
>
> C:\jdk1.6.0_02\bin> jconsole.exe 2831
>
> No JVM options are needed.
>
Similar Messages
-
Using JConsole in combination with SNMP
I have created a simple agent (using version 5 JDK) to handle an MBean. Within this agent I have created two adapters; an HTML and SNMP adapter. The HTML adapter is working fine via the browser (i can execute the operations on the MBean).
Question is; Can I use JConsole to connect to the SNMP adapter?; if not how then?
Code:
public void addSnmpAdapter(int port)
throws Exception {
// Register and start the SNMP adapter
SnmpAdaptorServer snmpAdapter = new SnmpAdaptorServer();
ObjectName snmpAdapterName = new ObjectName(
"MBeanAgent:name=snmpadapter,type=SNMP,port=" + port);
snmpAdapter.setPort(port);
mbs.registerMBean(snmpAdapter, snmpAdapterName);
snmpAdapter.start();
System.out.println("SnmpAdapter on port " + port);
}Start command:
java -Dcom.sun.management.jmxremote -Dcom.sun.management.snmp.acl=false -Dcom.sun.management.snmp.port=162 MBeanAgentHi Willem,
No you cannot use JConsole to "connect to the SNMP adapter".
JConsole is a JMX Console, not an SNMP console.
What are you trying to do with that SNMP Adaptor anyway?
If you use Java DMK to start an SNMP adapter, and do nothing more,
the adaptor will show you nothing. It is empty. You still need to
generate, implement, and add at least one SNMP MIB to the adaptor.
For more information on this, see the Java DMK documentation.
http://java.sun.com/products/jdmk/jdmk_docs.html
Java SE 5.0 has a built-in SNMP agent that can be started using System
properties on the Java command line. This agent implements a single MIB,
the JVM-MANAGEMENT-MIB, that exposes the JVM Management and Monitoring
data through SNMP.
See here for more info on the JVM SNMP Agent:
What is the JVM SNMP Agent?
http://blogs.sun.com/jmxetc/entry/what_is_the_jvm_snmp
See also here for a discussion of using SNMP versus JMX to monitor your JVMs.
JVM Monitoring: JMX or SNMP?
http://blogs.sun.com/jmxetc/entry/jmx_vs_snmp
Hope this helps,
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc -
Please help me, I need to use Flex with CF
Hi everyone,
I am starting to retract my brain from an intense 2 days to
figure out how to use Flex with Coldfusion. I am using Coldfusion 8
Beta (this part is good, don't need help for CF itself). I am also
using Flex Builder 2 (with chart but this not the topic). I
installed FDS 2.5 before to install ColdFusion 8 but I think CF8
have is own FDS or something like that... anyway, it might help to
mention it!
Well, I tried HTTPService, RemoteObject, WebSer vice -
NOTHING WORKS!!! Argh! Did I mention I spent 2 days? ;-)))
Well, I start with the basic: a login form with an email (as
a username) and a password to be validated. I have a CFC to do the
validation and return a simple message (string): "OK' when it is
valid and a custom message when it is not valid; depending if it is
the password and/or the email which is not valid.
I always got an error. Since the error is different depending
of the method I use, I will explain the latest method I used in
this message and try to concentrate on that method specifically!
The method is WebService and here is the error:
faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail: 'Error: [IOErrorEvent type="ioError"
bubbles:false cancelable=false eventPhase=2
text="Error #2032: Stream Error .
URL=http://localhost:8501/iDashboard/login.cfc"].
URL: http://localhost:8501/iDashboard/login.cfc'
Any help will be very useful!!!
Thank'sCyber,
This may be what you are looking for. It worked well for me.
Flex is sweet, but with the number of people confused about setup
with CF they sure aren't making any friends.
Flex/ColdFusion
setup -
Not able to connect my JBoss server using JConsole tool
Hi All,
I am trying to connect my JBoss Server 4.2 using Jconsole from the local machine. Well, my jboss is on my local machine and my jconsole is also on the same.
I have made the following configuration.
Added these three lines in run.conf.
# Enable the jconsole agent remotely on port 12345
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=12345"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
and start my Jconsole from JDK home dir. I go into Remote tab and put my IP address and port number 12345.
but it gives connection failed error.
Pls... Pls ... help me to get connected with the Jboss.
Thanks & Rgds
Sumit JajuHi
If you specify -Dcom.sun.management.jmxremote.port=6789, you don't need to specify -Dcom.sun.management.jmxremote=true.
Each of these property will start a different connector server. You only need to specify -Dcom.sun.management.jmxremote if
you run on JDK 1.5 and you want to be able to connect locally to the server process instead of using the port specified
by -Dcom.sun.management.jmxremote.port=6789.
It is a bad idea to specify -Dcom.sun.management.jmxremote.ssl=false when you also specify -Dcom.sun.management.jmxremote.authenticate=true
because if SSL is disabled then the credentials will be sent in clear through the network.
What I would suggest instead is:
copy <JRE_INSTALL>/lib/management/management.properties somewhere in your JBoss install.
copy <JRE_INSTALL>/lib/management/jmxremote.password.template to jmxremote.password somewhere in your JBoss install.
create a keystore/trustore for your JBoss server if it doesn't have one already.
Edit the management.properties and jmxremote.password you have copied - in particular makes sure that
your new management.properties points to your new jmxremote.password.
Make sure that only you (only the user that starts JBoss) has access to the new management.properties and jmxremote.password files.
Only specify these two system properties when starting JBoss:
-Dcom.sun.management.jmxremote.port=6789
-Dcom.sun.management.config.file=<path/to/new/management.properties>
Hope this helps,
-- daniel
[http://blogs.sun.com/jmxetc|http://blogs.sun.com/jmxetc] -
Trying to configure a multi-homed IIS server with CF8 on local network
I'm a bit lost trying to configure my development server in CF Builder (windows XP). The server is Win2k with CF8.
The server sits next to my workstation, and the workstation has drive mappings to the server.
Websites on the server are under c:\websites\<sitename>
Coldfusion is in c:\ColdFusion8
Each website has its own IP address, and is represented in the workstation hosts file (i.e. www.site1.dev = 192.168.1.xx)
The *default* website on the server is in c:\inetpub\wwwroot, and this is where cfide, etc resides
This creates a situation where CF8 admin is at a different IP from each of the sites.
So... Do I set up each site as an RDS connection, or can I set it all up as a local server (using mappings)
I read Ben Forta's intruduction article, and am kind of lost - it didn't match up well with the server config dialogs.
I've been looking forward to seeing 'bolt'. Any assistance is most appreciated!
- DonI have to admit, I'm wondering if people use other configurations to accomplish what I seek to achieve...
I am an independent developer with a number of clients. In order to develop for them all in a setup that best duplicates their production configuration, I have set up multiple websites on a server machine, and access them from my 'workstation' computer on the same network.
So, each website (client project) has its own IP address, and I set up a record in the HOSTS file on my workstation with a URL to access it as if on the public web.
For instance, I have a very simple project, "AsiaFineConsultants" (project name, 'asiafine').
The website root on the server is located on the disk at c:\websites\asiafine.
On the server, IIS has that set up as a website, addressable at 192.168.1.42.
My workstation hosts file has www.asiafine.dev directed to 192.168.1.42.
So, on my workstation, I can browse to www.aisafine.dev and see the website. Simple!
I have many such projects, each with its own IP, root directory, IIS website, and entry in my workstation hosts file.
**** Doesn't everyone do it this way???? *****
Ok, the server has coldfusion installed (of course), but in its own 'website' at 192.168.1.55, with root directory at c:\inetpub\wwwroot.
This works just great. There are no problems with this arrangement. I've been using HomeSite and CFEclipse for years in this environment - without debugging.
As I go to set up Bolt (er, Builder) I can't get the mappings to work. The site mapping is different from the server mapping. Perhaps this is an over-simplification, but I can get RDS, and I can get the project in the editor, but I can't browse it internally because of mapping problems.
Problem!
Got any ideas? -
Wants to start Jconsole with Weblogic 9.2 on Solaris 10
I wants to start JConsole with weblogic on Solaris 10 machine. I have added the following parameters in the startup script of the weblogic
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
But while running "netstat -an" command, found that 7099 port is not listening.
TIA,
Tarun.Hi Tarun,
A quick Google search on "weblogic jconsole" led me to this article :
http://e-docs.bea.com/wls/docs90/jmxinst/accesscust.html#1107229
It looks like you will need to use JMXServiceURL to connect to WebLogic Server's MBean Server.
Hope this helps
-Prashant -
Hi - My daughter was using her Apple TV until recently when she got a Smart TV. Now the Apple TV is not needed so she passed it on to me. How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!
As Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
regards -
OPEN CURSOR using a WITH clause in the select query
Hi,
I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
In the procedure, I am using OPEN <cursor_name> FOR <query>;
Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.What error do you get , seems to work ok for me on 10g
SQL> begin
2 open :cv for 'with x as (select * from emp) select * from x';
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> print :cv
EMPNO
ENAME
JOB MGR HIREDATE SAL COMM DEPTNO
7521
WARD
SALESMAN 7698 22-FEB-81 1250 500 30
7566
JONES
MANAGER 7839 02-APR-81 2975 20
EMPNO -
My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.
In the Music tab of iTunes, do you have 'Include Voice Memos' checked?
-
I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible.
Thanks,
SeanThe answer would be in your software license agreement for Aperture. However if you cannot locate it you can ask in the Aperture forum, the link for that is:
https://discussions.apple.com/community/professional_applications/aperture
However I believe you can have Aperture installed on two machines however only one may be using it at a time.
On the new iMac launch the Mac App Store - Purchased - look for Aperture and download to your new machine. -
How do I use LDAP with iMQ 2.0?
I am looking for an example to see how to use LDAP with iMQ 2.0.
I was able to set up the config settings to access a local LDAP,
but iMQ authentication still rejects valid logins.
Let me know if I can find more info someplace.You can also find an example I put togther in the Sun One knowledge base.
If you go here:
http://knowledgebase.iplanet.com/NASApp/ikb/index.jsp
Search for article 7772
Alternatively here is the direct link
http://knowledgebase.iplanet.com/ikb/kb/articles/7772.html -
How do you use Struts with Jboss Portal
I am trying to use strust with jboss portal but I am getting the following error:
An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
I am getting this is in the log file
Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
68: List searchresult = (List) request.getAttribute("searchresult");
69: %>
70: <%
71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
72: {
73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
74: %>
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
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:585)
at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
... 238 more
Caused by: java.lang.NullPointerException
at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
... 255 moreI am trying to use strust with jboss portal but I am getting the following error:
An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
I am getting this is in the log file
Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
68: List searchresult = (List) request.getAttribute("searchresult");
69: %>
70: <%
71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
72: {
73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
74: %>
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
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:585)
at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
... 238 more
Caused by: java.lang.NullPointerException
at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
... 255 more -
How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?
iPod touch User Guide (For iOS 4.3 Software)
-
How do I use user_datastore with a feeder proc to add an mdata section?
Hi,
I have text data spread across a number of different tables. I have created a user_datastore with a feeder procedure that creates an xml document which is then indexed into a dummy column on the parent table. This works fine. However I need to add an mdata section to the index, via my xml document. I haven't seen any examples of this being done in conjunction with the ctxsys.auto_section_group option of the create index statement, and am wondering if it is possible?
Could somebody furnish me an example of how I achieve this.
Oracle 11.2.
Thanks
RalphYou can't use MDATA with AUTO_SECTION_GROUP. AUTO means it automatically assigns zone sections for every tag it finds - if you want anything other than zone sections you must use BASIC_SECTION_GROUP, XML_SECTION_GROUP or HTML_SECTION_GROUP and manually define your sections.
-
I have a used Iphone with someone elses email on it for itunes, how do i remove it and put my account there
It is an Iphone 4If you go to settings- store - click on the ID and sign out. Then you can put in your apple id.
Maybe you are looking for
-
How to Remove App Store, Facetime, etc from the Dock
Apple: I have to admit: I'm dead-tired of this. Every single time an update to the OS comes down I have to spend hours upon hours trying to remove icons I do not want displayed in my dock from my dock. "I know where the App Store is. Making it reappe
-
Adding up a Custom Field Approver in Purchase Requisition
Hi, Could anyone please let me know how to addup a custom field Approver to Purchase Requistion. Requesting you to list down the User enhancements that are available for PR Lineitems screen. The transaction used is ME51N. Regards, Ganga
-
Export to spreadsheet - Excel cells missing data
We have an ApEx report that when wildcards are used for 3 parameters the report renders data to the browser as expected, but when the report is exported to spreadsheet the last 3 cells on the worksheet are missing data. However, if the parameters are
-
I have the same question that went unanswered in someone's else previous post. Here it goes. Two camera shoot with split audio recordings. So, I have two video tracks and four audio tracks. Is there a way for me to use the multiclip function of FCP6
-
You have been logged out of your account (Adobe CC)
I have recently updated the Adobe CC app (Windows 7) and now, I cannot log in to the Adobe CC application (to updates apps and fonts). I correctly enter my login information, and receive this message - as shown below. Any help would be greatly apprec