I don't know how to close it, so probably for the squirrel admin to resolve though I opened it and it was resolved to my satisfaction.
Is the screen snapshot from your running instance? If so , it looks like jamon is wired up correctly. I see SQL stats, and garbage collection stats so that is good. Your problem is probably the most common one that I see (almost 100%). If your code is executing and not throwing exceptions that means it is finding the jamon jar, but you probably have the jamon jar deployed twice 1. Your application is writing to one jamon jar (yourapp->jamonjar1) 2. The jamon web app is reading from a different jamon...
Sorry, for the ridiculously late/pointless response, but thought I would answer in case others look. I hope to update all the libraries jamon uses including hazelcast relatively soon. If you don't have hazelcast jars in your classpath it won't call any of the hazelcast code. You can also explicitly configure the jamonpersister in the jamon properties file to ensure hazelcast code is not called. If you would like you can safely remove all hazelcast classes from the jar. I could work with you on t...
awesome!
Thanks so much for your input. Over the years I haven't had much input from my user community, and so your post is welcome. First, do you realize that the "donate" button on the sourceforge site here fails? No. I put it up a long time ago and never really got donations so more or less forgot about it. I will look into that - who knows I may be leaving millions on the table :). Second, as indicated in one of the reviews (and I've heard it from others), some struggle with finding more on the tool....
Sorry for the delay in responding. I must have missed the email sourceforge sent me. Good suggestion. I hope to update the older libraries jamon uses soon, so I will put this on the list. Thanks for the references.
That class is one of the first loaded and is in jamon-2.82.jar. So it sounds like the jar is not being found by tomcat. Can you give a few more details? 1. What version of tomcat are you using? 2. Where did you put jamon-2.82.jar? 3. Did you do any other configuration steps such as those specified here: https://jamonapi.sourceforge.net/http_monitoring.html Thanks, Steve
Absolutely can be closed. Your solution of moving away from log4j in general is totally acceptable. I didn’t realize I had to close it. Is that something you want me to do? Or you can certainly feel free to close it. Thanks for your help. On Mon, Feb 27, 2023 at 6:29 AM sfst sfst@users.sourceforge.net wrote: I understand you kept this open, so other people can find the solution, but now after one year it can be closed? [feature-requests:#606] Plans for Squirrel to move from EOL log4j 1.x to log4j...
If you would like me to try to see what happens when I use the log4j2 bridge with squirrel let me know and I can try it
Note another option is to just use the log4j2 to log4j1 bridge. It is a jar that comes with log4j2 that tricks your code into thinking it is using log4j1 even tough it is using log4j2. It is a simple jar drop in replacement. https://logging.apache.org/log4j/2.x/manual/migration.html. I have successfully used this approach in other software. If your usage of log4j is pretty simple this should work.
Note another option is to just use the log4j2 to log4j1 bridge. It is a jar that comes with log4j2 that tricks your code into thinking it is using log4j1 even tough it is using log4j2. It is a simple jar drop in replacement. https://logging.apache.org/log4j/2.x/manual/migration.html
Thanks. Appreciate the response. Probably the easiest path would be to move to log4j 2.17+, but another other option is... 1) sl4j - which is a facade in front of logging frameworks. This allows the user to use different logging implementations including log4j, and java logging for example as sl4j just picks up what is available to use. https://www.baeldung.com/java-logging-intro. 2) Logback is an implementation of sl4j and offers many benefits over log4j - https://logback.qos.ch/reasonsToSwitch.html...
Thanks. Appreciate the response. Probably the easiest path would be to move to log4j 2.17+, but another other option is... 1) sl4j - which is a facade in front of logging frameworks. This allows the user to use different logging implementations including log4j, and java logging for example as sl4j just picks up what is available to use. https://www.baeldung.com/java-logging-intro. I would not roll my own logging framework. Your users already know how to use sl4j and log4j and probably have other...
Plans for Squirrel to move from EOL log4j 1.x to log4j 2.17+?
After looking into this nanotime has no relation to clock time (and in fact it can vary from jvm to jvm) and it is only useful when calculating the difference between 2 nanotimes (startTime-endTime). There is no useful meaning in nanotime unless you do a difference. This means clock time can not be calculated from nanotime. This is not true of millisecond times. They are based on clock time (since 1970). I am going to opt not to fix this as one wouldn't use nanotime timers unless the time you are...
You are right there is a problem here. How urgent is the problem for you? A short term work around may be to directly set the values that are not being updated automatically.
Did you stop the monitor? Those values are set when you stop the monitor only. Also, just to confirm you called the startNano method with a lable. The label is required: MonitorFactory.startNano("label") Monitor mon = MonitorFactory.startNano(); System.out.println(mon.stop()); Please post your full code and what is printed...
Did you stop the monitor? Those values are set when you stop the monitor only. Monitor mon = MonitorFactory.startNano(); System.out.println(mon.stop());
Sounds good. The library doesn't write data as csv, but the web application can. LocalJamonFilePersister would probably be a good place to work from. Still it might be useful to serialize the jamon data as it will give you the whole web of jamon objects including stack traces as well as all the other data. You could write both the serialized data and the csv. The advantage of the jamon serialized data is you can move it to the jvm that has jamon war and view all of the jamon data without doing any...
I will type something shorter this time and wait for follow on questions from you. 1) Jamon allows you to look at various jvm instances jamon stats with the war if you use have hazelcast in your classpath. See this page for more info. There is also a video link that talks about configuration at the end of the video: http://jamonapi.sourceforge.net/distributed_jamon.html 2) Alternatively you can take advantage of the fact that jamon statistics are serializable. The jamon war can look in the 'jjamonDataPersister.directory'...
Unfortunately I typed a long response to your question complete with links and sourceforge lost it when i posted.
Great. Let me know if the problem reappears.
Ok, I see you mentioned upgrading the jamon version. Let me know how that goes and I can help you further.
Ok, I see you mentioned upgrading the jamon version. Let me know how that goes and I can help you further.
Is there any reason why you are using 2.75? That is a very old version. I believe changes have been made to this part of the code since 2.75.
There is a known problem if your session times out. The way that it determines what page it should pull up is to go to your session. Currently if there is no session it causes a NPE. Could that be the problem. i.e. refresh jamonadmin.jsp and try again. Also, jamon 2.75 is quite old. Have you tried upgrading? Thanks for your kind words. Steve
Hi, greetings to you and thanks. Would you kindly tell me why you stop developing...
Hi, greetings to you and thanks. Would you kindly tell me why you stop developing...
Hi, greetings to you and thanks. Would you kindly tell me why you stop developing...
Hi, greetings to you and thanks. Would you kindly tell me why you stop developing...
Hi, greetings to you and thanks. Would you kindly tell me why you stop developing...
Hi, greetings to you and thanks. <<Would you="" kindly="" tell="" me="" why="" you=""...
Here is the line in code that shows what 'demo' does. I forget, but depending on...
Setting summaryLabels=request.getMethod() should do it. But probably more helpful...
Also, I would suggest following Siegfried's steps explicitly until you get it to...
I've never used wildfly. The error indicates a simple problem i.e. that the jamon...
It looks like spring has had the jamon interceptor since version 1. Have you tried...
:) You're right!
Note spring also comes with an jamon aspect. You could try that too. class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor">...
That would help to try to reproduce in a small demo app. Also can you try the latest...
ERROR! The markdown supplied could not be parsed correctly. Did you forget to surround...
Also make sure you review this page: http://jamonapi.sourceforge.net/spring_aop_...
Please post your full spring xml. In my tests in maven I used <spring.version>4.0.2.RELEASE</spring.version>...
did you remove the properties you are passing to jamonAspect... <bean id="jamonAspect"...
Try to make your file as similar to this one that i used for testing. For example...
Thanks for getting back to me. It would be helpful to others if you put the full...
There is a link in what you pasted in the forum.... To unsubscribe from further messages,...
It looks like there is a spring issue happening. Is this link helpful? http://stackoverflow.com/questions/16568665/why-does-spring-throw-an-aspectj-error-if-it-does-not-depend-on-aspectj...
I haven't used this paypal account in ages. Not sure if the link is busted or not...
I haven't used this paypal account in ages. Not sure if the link is busted or not...
It should be very simple. I suggest first coding a simple JAMonListener that does...
Outputting to a page or keeping the full history (in memory) could cause memory problems...
Thanks for the kind words. How to make jamon available to multiple applications at...
Thanks for the kind words. How to make jamon available to multiple applications at...
Follow comments below. The following may not be clear, but I should be able to step...
Follow comments below. The following may not be clear, but I should be able to step...
Thanks. I am not even sure how I collect my donation! I guess I will have to look...
Follow comments below. The following may not be clear, but I should be able to step...
By the way I have another open source product called Automon that you might find...
By the way I have another open source product called Automon that you might find...
Thanks for the kind words. How to make jamon available to multiple applications at...
"So my question is: Would starting and not stopping a monitor cause memory leaks?...
"So my question is: Would starting and not stopping a monitor cause memory leaks?...
Thanks. I am glad to help. Have a great day and good luck!! Steve
<<So my="" question="" is:="" Would="" starting="" and="" not="" stopping="" a=""...
Note if active is important you could also serialize that and populate it manually....
ok, thanks for the followup. What is the use case you are working on?
I will look into this. I have a newborn so my time is limited, but will look into...
Make sure you only have the jamon jar in one location. Make sure it is in a shared...
Thanks for letting me know Siegfried. A great use of JAMon. Knowing how people use...
No, but with minimal effort it probably could be. What exactly are you trying to...
How do you use JAMon?
I am trying to get some feedback on jamon. How do you use it? What do you track?...
Umesh,thanks for getting back to me on this. It helps other users of jamon too. And...
"Hi Steve Thanks for the information, so with above description, is jamon.war required...
"Sounds like the new tool can work for POJO projects and Spring appliction :) that's...
Also I have a new open source project that is complimentary to JAMon called Automon...
"one more question: I go over threads in the forum and it looks JAMon is capable...
"If I remove the <scope>provided</scope> tag, of course there will be not error but...
This should work. Jamon should have no other dependencies required. i.e. you don't...
"really?????? so jamon log4j appender is not required?" Correct. The log4j appender...
<<one more="" question:="" I="" go="" over="" threads="" in="" the="" forum="" and=""...
"Well first thanks for the awesome tool !!!! :D" Thanks, appreciation is always appreciated...
<<really?????? so="" jamon="" log4j="" appender="" is="" not="" required?="">> Correct....
<<Well first="" thanks="" for="" the="" awesome="" tool="" !!!!="" :D="">> Thanks,...
<<really?????? so="" jamon="" log4j="" appender="" is="" not="" required?="">> Correct....
<<If I="" remove="" the="" <scope="">provided</scope> tag, of course there will be...
This should work. Jamon should have no other dependencies required. i.e. you don't...
JAMon 2.81 Released
:java // The following is an example of configuring log4j jamon logic programmatically....
<<What is="" the="" overhead="" of="" running="" jamon.war="" everywhere?="">> No...
What is the overhead of running jamon.war everywhere? If you can see what methods...
I should mention another useful thing about the jamon war while I am thinking of...
I should be able to work with you and accomplish all that you are asking. answers...
Hi Steven, Thanks for your quick reply. See my comments inline below. -----Original...
Hi, Today I stumbled upon JAMonAPI as I was looking for a way to monitor certain...
Thanks for the good questions. Can i ask that you post questions at https://sourceforge.net/p/jamonapi/discussion/334830/...
This posting comes from an email sent to the jamon admin account... ****useremail1...