-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with springboot java and jmxtrans-agent #111
Comments
The HTTP connection from jmxtrans-agent embedded in your spring boot app to influxdb fails with a socket timeout ("SocketTimeoutException: Connect timed out"). You are likely to have a firewall issue between the springboot server and the influxdb server. Could you try a |
I thank you for your fast answer. A curl from the server produces data. curl -G 'http://xx.yy.yy.aa:8086/query?pretty=true' --data-urlencode "db=java_db" --data-urlencode "q=SELECT mean("value") AS "mean_value" FROM "java_db"."autogen"."ThreadCount" WHERE time > now() - 5m AND "host"='' AND "instance"='logstash' GROUP BY time(10s)" retrieves : {
"results": [
{
"statement_id": 0,
"series": [
{
"name": "ThreadCount",
"columns": [
"time",
"mean_value"
],
"values": [
[
"2017-09-20T08:26:40Z",
54
],
...snip...
54
],
[
"2017-09-20T08:31:40Z",
null
]
]
}
]
}
]
} Furthermore, on the same server, a logstash is tooled the same way with the same jmxtrans-agent jar and xml without problem But, it succesfully generates some data points before failing in stack. it looks like something is interfering with the normal action of jmxtrans-agent. |
That error should not stop the reporting, it is just a warning, and as it
says in the message, it should be ignored. What is logged after the error?
You mention that the reporting finishes, could you elaborate on that?
…On Wed, Sep 20, 2017 at 10:41 AM, maogouste ***@***.***> wrote:
I thank you for your fast answer.
A curl from the server produces data.
curl -G 'http://xx.yy.yy.aa:8086/query?pretty=true' --data-urlencode
"db=java_db" --data-urlencode "q=SELECT mean("value") AS "mean_value" FROM
"java_db"."autogen"."ThreadCount" WHERE time > now() - 5m AND "host"=''
AND "instance"='logstash' GROUP BY time(10s)"
retrieves :
{
"results": [
{
"statement_id": 0,
"series": [
{
"name": "ThreadCount",
"columns": [
"time",
"mean_value"
],
"values": [
[
"2017-09-20T08:26:40Z",
54
],
54
],
[
"2017-09-20T08:31:40Z",
null
]
]
}
]
}
]
}
Furthermore, on the same server, a logstash is tooled the same way with
the same jmxtrans-agent jar and xml without problem
But, it succesfully generates some data points before failing in stack.
it looks like something is interfering with the normal action of
jmxtrans-agent.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD-iaagYjU5Pc62iffbZNrAntJ43krDvks5skM_LgaJpZM4Pcfrx>
.
|
That error should not stop the reporting, it is just a warning, and as it
says in the message, it should be ignored.
What is logged after the error?
Nothing is logged after the error. But the ConsoleOutputWriter keep on
producing data.
You mention that the reporting finishes, could you elaborate on that?
Influxdb have one point at the start of the java. And nothing.
2017-09-20 10:01 GMT+01:00 Kristoffer Erlandsson <[email protected]>:
… That error should not stop the reporting, it is just a warning, and as it
says in the message, it should be ignored. What is logged after the error?
You mention that the reporting finishes, could you elaborate on that?
On Wed, Sep 20, 2017 at 10:41 AM, maogouste ***@***.***>
wrote:
> I thank you for your fast answer.
>
> A curl from the server produces data.
>
> curl -G 'http://xx.yy.yy.aa:8086/query?pretty=true' --data-urlencode
> "db=java_db" --data-urlencode "q=SELECT mean("value") AS "mean_value"
FROM
> "java_db"."autogen"."ThreadCount" WHERE time > now() - 5m AND "host"=''
> AND "instance"='logstash' GROUP BY time(10s)"
>
> retrieves :
>
> {
> "results": [
> {
> "statement_id": 0,
> "series": [
> {
> "name": "ThreadCount",
> "columns": [
> "time",
> "mean_value"
> ],
> "values": [
> [
> "2017-09-20T08:26:40Z",
> 54
> ],
>
> 54
> ],
> [
> "2017-09-20T08:31:40Z",
> null
> ]
> ]
> }
> ]
> }
> ]
> }
>
> Furthermore, on the same server, a logstash is tooled the same way with
> the same jmxtrans-agent jar and xml without problem
>
> But, it succesfully generates some data points before failing in stack.
>
> it looks like something is interfering with the normal action of
> jmxtrans-agent.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#111#
issuecomment-330785877>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AD-
iaagYjU5Pc62iffbZNrAntJ43krDvks5skM_LgaJpZM4Pcfrx>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbYM3ITENhJRou9pZSZq2leafBhSUl-Hks5skNRkgaJpZM4Pcfrx>
.
|
@maogouste I have improved the troubleshooting messages with #112 Can you please test the jmxtrans-agent snapshot https://oss.sonatype.org/content/repositories/snapshots/org/jmxtrans/agent/jmxtrans-agent/1.2.7-SNAPSHOT/jmxtrans-agent-1.2.7-20170920.100756-1.jar and share with us the error message. |
|
@maogouste you have a connect timeout when the JVM tries to open an HTTP socket on port 8086 to the IP xx.yy.zz.aa. If a Can you try to execute from the application server the following command to test a jvm access to :http://xx.yy.zz.aa:808
|
It says 404 |
I think I understood, the http connection from your java application seem to go through a Sock Proxy as you can see Shouldn't you exclude the ip address of your influxdb server from your jvm proxy config?
|
The jmxtrans-agent connection should pass directly. No proxy of any kind needed. But, proxies are defined for the corporate application. Is it possible to define our own? In this case, none? |
Hello,
I'm trying to add jmxtrans-agent to internal java with springboot application.
It's started with :
It correctly generates some point and finishes with a stack :
My xml :
On the same server, I have a logstash that export correctly with the same xml and jar. I can graph it.
I see the "Ignore exception flushing metrics" exception at https://github.com/jmxtrans/jmxtrans-agent/blob/master/src/main/java/org/jmxtrans/agent/JmxTransExporter.java
But, I have no idea what it may mean.
I tried to debug by myself, but couldn't progress further.
Gerard.
The text was updated successfully, but these errors were encountered: