Quantcast
Channel: All AppDynamics Discussions posts
Viewing all 1667 articles
Browse latest View live

Database Agent Is Not Showing Queries

$
0
0

Hi,

I am using AppDynamics with AppAgent and DBAgent and It seems that everything runs well. For collecting data I'm using the controller as a SaaS.

Everything is OK except the db queries. When I go to the database panel (AppDynamics) and I go to the Queries tab it does not show any result. However if I go to the database dashboard it shows the number of queries.

What could be happening with the queries?

I need it to make load and stress tests.

Thanks!!!


Re: Database Agent Is Not Showing Queries

$
0
0

Hi,

 

Please provide screenshots from saas UI and also attach archive version of <dbagent_dir>/logs folder for our initial review ? to assist you further on this

Re: Can not enable EUM on trial mode

$
0
0

Hi ,

 

Can you validate the EUM related jvm args in domain.xml once as referred in doc section:

 

https://docs.appdynamics.com/display/PRO39/Install+the+On-Premise+End+User+Experience+Management+Processor#InstalltheOn-PremiseEndUserExperienceManagementProcessor-VerifyConfigurationAfterControllerUpgrade

 

Also send the recent 2-3 server.log once? we understood that you are trying to use EUM AWS Cloud instead onPremise eum processor from your comments and logs, let us know if any disconnect here

Re: Database Agent Is Not Showing Queries

$
0
0

There are many screenshots and the log file.

 

If you need something else I will be here.

 

Thx!!

Re: Database Agent Is Not Showing Queries

$
0
0

Hi,

 

We do not see any specific errors in logs , Can you try belo if possible as we see this could be due to there is no sql that is taken >= 0 secs as we see total time spent on db is 00:00:00 as per screenshot:

 

a) issue an sql query on monitored DB server that will take around 1-2 secs

 

b) check in UI after 15 minutes with 1 hour time selected once

Node taking 6 minutes to register

$
0
0

Hi All,

I'm running a Java application, my node takes about 6 minutes to register and to show up on the console.

 

...

[Thread-0] Mon Nov 02 19:12:03 BRST 2015[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.

...

[AD Thread Pool-Global0] Mon Nov 02 19:18:02 BRST 2015[INFO]: AgentInstallManager - Agent node directory set to [MacBook-Pro-de-Ricardo]

Registered app server agent with Node ID[5974] Component ID[5234] Application ID [3296]
[AD Thread Pool-Global0] Mon Nov 02 19:18:04 BRST 2015[INFO]: JavaAgent - JVM Process Persistence File <pid = 53647 nodeDirectory...

 

So it takes 6 minutes to see the agent data (it seems before that no application transaction data is recorded also).

 

Is it normal in AppDynamics?

 

Thanks.

Re: Does AppDynamics allows to monitor Clojure Applications

$
0
0

Yes, it works!

 

For anyone interested in this, Clojure generates anonymous inner class for everyfunction declared in a given namespace and creates a method called "invoke" in it.

 

For instance if you have a function like the below:

 

(ns myproject)

 

(defn my-function [])

 

You should create the following rule in appdynamics:

class name contains: "myproject$my_function"

method name contains: invoke

 

Note that clojure replaces "-" by "_" when translating to java. I used contains rule just in case, but I think equals works also.

How to resolve mysql.sock error

$
0
0

I came across this and thought others might be interested. 

 

When you host your own controller, you may have a error during startup/install:

151029 12:51:27 InnoDB: 5.5.45 started; log sequence number 11059118728182

151029 12:51:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3389

151029 12:51:27 [Note]   - '0.0.0.0' resolves to '0.0.0.0';

151029 12:51:27 [Note] Server socket created on IP: '0.0.0.0'.

151029 12:51:27 [ERROR] Can't start server : Bind on unix socket: Address already in use

151029 12:51:27 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?

151029 12:51:27 [ERROR] Aborting

 

151029 12:51:27  InnoDB: Starting shutdown...

151029 12:51:28  InnoDB: Shutdown completed;

 

By default, the controller assumes you can use /tmp/mysql.sock to start the socket connection to start up the database. If for some reason you have another instance of MySql running on the box, this could also happen. 

 

I suggest you do the following: 

  1. sudo <controller dir>/bin/controller.sh stop-appserver
  2. sudo <controller dir>/bin/controller.sh stop-db
  3. Edit db.cnf: <controller dir>/db/db.cnf. add 
  • socket=<controller dir>/db/mysql.sock under the [mysqld] of db.cnf. This ensures that is starts its own socket and not the defautl MySql socket.

4. Restart the controller and you shoudl be good to go. 


Objects with potentially expensive SQL

$
0
0

Hey guys/gals. I have a dliemna concerning Oracle, Hibernate and how AppDynamics (to my understanding) tracks these entity's. Currently AppD does a great job of finding SQL which it tags in long running business transactions. However i've come across an issue in my schema which seems to be alluding AppD. 

 

To make a long story short by Using AWR reporting i've found that a nubmer of my queries are producint cartesian products thus causing huge latency in user transactions. The problem is that what AWR is reporting appears to not be reported or observed in AppD from the application perspective. 

 

Has anyone else run across an exmaple where AppD doesn't provide this level of visiblity. Is it even possible to observe  cartesian products with it?

 

My concern is that my applicatin which uses hibernate to generate the vast majoirty of our jdbc queries might be unaccounted for when looking for expensive sql.

 

No I can not instrument our DBs with AppD if you're wondering. 

 

Thanks in advance for any clues to the question, "can AppD determine if a query is a cartesian product' or should I stick to AWR?

 

Curtis

How to instrument custom Java class and methods and enable monitoring

$
0
0

Hi,

 

I am a wily developer, and I have recently started learning about AppDynamics like how to setup and enable monitoring using AppDynamics.

I would like to know how do you instrument custom java methods in AppDynamics. In Wily we use these custom PBDs where along with the wily keywords we add the fully qualified java classpath and methods names to monitor and wireup this pbd file with the profile file.

 

So how do you do the same in AppDynamics?

 

Thanks,

Rakesh

Re: How to instrument custom Java class and methods and enable monitoring

Re: Can not enable EUM on trial mode

$
0
0

Thanks Kumar , it resolved the problem 95%  :)

now i faced to another error regarding to analysis service location

 

the appdynamics.controller.eum.analytics.service.hostName  was pointing to internet but after changing it to internal server  , again i faced to error :

Invalid analytics configuration, or analytics processor not running: Could not execute request to https://appdynamics.gbgnetwork.net:443/v2/events/BrowserRecord/search

 

 

thanks for your advices

 

]|#]

[#|2015-11-03T12:03:54.902+0330|INFO|glassfish3.1.2|com.singularity.ee.controller.beans.eumcloud.EUMCloudManagerBean|_ThreadID=155;_ThreadName=Thread-5;|Posted EUM Internal Error Event [Agent Event Type[EUM_INTERNAL_ERROR]
Occurred at Time[1446539634901]
Summary[EUM Internal Errors]
Severity[ERROR]
Event Details[{com.singularity.ee.controller.beans.eumcloud.RESTCommunicationException|FailedToSyncEumCloudLicenseForAccount=RESTCommunicationException: org.apache.http.conn.HttpHostConnectException: Connect to Appdynamics.gbgnetwork.net:7001 [Appdynamics.gbgnetwork.net/172.20.21.23, Appdynamics.gbgnetwork.net/0:0:0:0:0:0:0:1] failed: Connection refused: connect while calling 'http://Appdynamics.gbgnetwork.net:7001/eumaggregator/provision-license'::Failed to sync EUM Cloud License with cloud for account [customer1], eum_account_name [201650-ss-gbg-2xyu5dqeeowt]
, com.singularity.ee.controller.beans.eumcloud.RESTCommunicationException|RegistrationError=RESTCommunicationException: org.apache.http.conn.HttpHostConnectException: Connect to Appdynamics.gbgnetwork.net:7001 [Appdynamics.gbgnetwork.net/172.20.21.23, Appdynamics.gbgnetwork.net/0:0:0:0:0:0:0:1] failed: Connection refused: connect while calling 'http://Appdynamics.gbgnetwork.net:7001/eumaggregator/register-app'::Failed to complete registration, response=null, request=com.appdynamics.eumcloud.registration.dto.EUMCloudRequestApplicationRegistration@3dcc1864
}]
Error IDs[[]]
Correlation Map[{}]
EventProperties[null]
]|#]

[#|2015-11-03T12:03:54.981+0330|INFO|glassfish3.1.2|com.appdynamics.RULES.PROCESSING|_ThreadID=160;_ThreadName=Thread-5;|Running HR processor, checking HR cache|#]

[#|2015-11-03T12:03:54.982+0330|INFO|glassfish3.1.2|com.appdynamics.RULES.PROCESSING|_ThreadID=160;_ThreadName=Thread-5;|Running HR processor, cache loaded|#]

[#|2015-11-03T12:04:15.015+0330|INFO|glassfish3.1.2|com.singularity.ee.controller.beans.agent.db.MetricMemoryDataStore|_ThreadID=155;_ThreadName=Thread-5;|Verification started for Tue Nov 03 11:57:00 IRST 2015|#]

[#|2015-11-03T12:04:15.042+0330|INFO|glassfish3.1.2|com.singularity.ee.controller.beans.agent.db.MetricMemoryDataStore|_ThreadID=155;_ThreadName=Thread-5;|Verification finished. VerifyResult{verifiedCount=492, rowsCount=1432, errorCount=0}|#]

[#|2015-11-03T12:04:22.614+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Event Data Query Optimization Value : true|#]

[#|2015-11-03T12:04:22.616+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Number of Rows requested in query = [600]|#]

[#|2015-11-03T12:04:22.617+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Time Bucketing for EventData Affected Query : [false]|#]

[#|2015-11-03T12:04:22.617+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Processing Bucket for EventData Affected Query: StartTime = [1446538762615] EndTime = [1446539662615]|#]

[#|2015-11-03T12:04:22.631+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Query_Loop counter = [0] Number of rows retrieved in current loop : [0]|#]

[#|2015-11-03T12:04:22.632+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|EventData Affected Query Total Number of Rows retrieved = [0]|#]

[#|2015-11-03T12:04:22.652+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Event Data Query Optimization Value : true|#]

[#|2015-11-03T12:04:22.653+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Number of Rows requested in query = [600]|#]

[#|2015-11-03T12:04:22.654+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Time Bucketing for EventData Affected Query : [false]|#]

[#|2015-11-03T12:04:22.654+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Processing Bucket for EventData Affected Query: StartTime = [1446538762615] EndTime = [1446539662615]|#]

[#|2015-11-03T12:04:22.661+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|Query_Loop counter = [0] Number of rows retrieved in current loop : [0]|#]

[#|2015-11-03T12:04:22.662+0330|INFO|glassfish3.1.2|com.appdynamics.EVENTS.READ|_ThreadID=58;_ThreadName=Thread-5;|EventData Affected Query Total Number of Rows retrieved = [0]|#]

[#|2015-11-03T12:04:23.238+0330|SEVERE|glassfish3.1.2|com.singularity.ee.controller.ui.services.eum.web.WebAnalyzeUiService|_ThreadID=53;_ThreadName=Thread-5;|ClientException caused by IOException caught while executing analytics query; invalid/unset analytics configuration / or analytics processor not running|#]

[#|2015-11-03T12:04:24.099+0330|SEVERE|glassfish3.1.2|com.singularity.ee.controller.ui.services.eum.web.WebAnalyzeUiService|_ThreadID=56;_ThreadName=Thread-5;|ClientException caused by IOException caught while executing analytics query; invalid/unset analytics configuration / or analytics processor not running|#]

 

Re: Database Agent Is Not Showing Queries

$
0
0

This means that it does not show queries which running time is less than 1 second?

Renamed application and separate data

$
0
0

When we started using the appdynamics it automatically recognized and gave a name to the application "Application X".
So this application has been renamed to "01 - Application X".
Upon returning to work today, it had been re-created an 'Application X ", getting all the previous baseline in "01 - Application X ".


How to gather the data that is the same application, but are just different names?


Thank you,
Valter Arantes

Re: Can not enable EUM on trial mode

$
0
0

Hi,

 

Can you check behavior post trying below changes:

- add port 443 in your case for below similar jvm args:

<jvm-options>-Dappdynamics.controller.eum.analytics.service.hostName=localhost:9080</jvm-options>

 

above change requires controller ui jvm process restart

 

- is the events service jvm is running? if not issue below and check error again in UI after re-login Controller

shell> cd <Controller_install_dir>/bin

shell> controller.sh/bat stop-events-service

shell> controller.sh/bat start-events-service

 

 

Also from logs, it looks eum processor jvm is not running on port 7001, check once again that eum process jvm is running on port 7001:

 

Connection refused: connect while calling 'http://Appdynamics.gbgnetwork.net:7001/eumaggregator/register-app'


Re: Database Agent Is Not Showing Queries

$
0
0

Hi,

 

The suggested step was requested to make sure there is some load on db server by manually issuing query as we do not see any errors in logs , Hope that answers

Re: Renamed application and separate data

$
0
0

Hi Valter,

 

We confirm that the data in other app at tier level cannot be moved or imported to other application,

 

The reason for the application name got automatically recrated to new name or old name "Application X" because user did changes to application name in UI and have not updated the monitored jvms startup with -javaagent entry that have agent config referring to old application name , please make sure you update on next jvm restart if you change app name in UI else on agent node jvm reset or restart it will still use old name as per settings in controller-info.xml or -Dappdynamics.agent.applicationName

 

As we cannot move tier/app level data what we can do here, go to node dashboard to wrong associated app and select "move this node"  option from actions meny and see if that helps

 

screen2.png

Re: Node taking 6 minutes to register

$
0
0

Hi,

 

I confirm this could be expected behavior as i see below in local which looks to be standard behavior here:

 

a) started tomcat with 4.x agent at 1:10:10 pm IST

b) at tomcat console we see "Started AppDynamics Java Agent Successfully." at 1:10: 30 PM IST itself

c) but agent will try to send registration request to controller after tomcat started completely in my case 3 minutes for tomcat to start and listening tomcat http port

 

If you try 3.x agent version pre 4.x agent you will see agent tries to register immediately after "Started AppDynamics Java Agent Successfully." message, we confirm agent could be delaying registration to make sure agent is not causing any delay on jvm startup rather agent delay registration request to controller though it starts earlier to make sure it is not part of any delay , Hope that clarifies product behavior.

 

yes agent will not monitor start before node got registered this could be expected behavior.

Re: Objects with potentially expensive SQL

$
0
0

Hi Curtis,

 

If i understood your query right, we are referring to same sql query feature as referred in below forum links:

 

http://www.dba-oracle.com/t_garmany_9_sql_cross_join.htm

https://community.oracle.com/thread/183056

 

If above said is the case, and as per my understanding cartesian product is like any SQL select query if this is the case and if the target BT (api class and method) is part of discovered BT we should be able to monitor

 

If above is not the case, can you send the agent logs and also list the DB JDBC api we are calling at code to call missing queries?

 

We understood we have checked in "sql calls" section of target BT but we do not see target sql queries, let us know if any disconnect

Re: Renamed application and separate data

$
0
0

Hi akumar,


So I managed to move the node successfully.
But in this case I'll be without the information collected while this node was in another application? is no way to move or copy the application to which the node was taken? I say because they were three days of information captured. and now I will turn a blank space of three days.

 

Thanks for your help.

 

Att
Valter Arantes.

Viewing all 1667 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>