# Nodes Stats returns sometimes ArithmeticException

**URL:** <https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944>\
**Category:** Elasticsearch\
**Created:** [February 28, 2013, 7:51am UTC](https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944 "2013-02-28T07:51:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max/32/2236_2.png) [@max](https://discuss.elastic.co/u/max)\
**Post date:** [February 28, 2013, 7:51am UTC](https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944/1 "2013-02-28T07:51:49Z")

</div>

Hi,

we are running 0.19.12 on a quite large cluster (over 1 billion documents,  
over 3TB) and suddenly the /\_node/stats function returns sometimes this  
error:  
{  
"error" : "ArithmeticException[Value cannot fit in an int:  
2562047788015]",  
"status" : 500  
}

after some search we found out that the problem is in the os-stats, they  
return this error. We query this stats every 10 seconds and around 50% of  
them are failing.  
The machines are all Ubuntu 12.04 LTS Servers on Amazon running Openjdk.

Any idea why this is happening? Will this happen in 0.2x too?

Thank you,  
Max

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 28, 2013, 7:56am UTC](https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944/2 "2013-02-28T07:56:54Z")

</div>

We fixed a similar problem with filter cache stats (its in 0.20). What led you to believe its in os stats?

On Feb 28, 2013, at 8:51 AM, Max Kossatz [max@kossatz.com](mailto:max@kossatz.com) wrote:

> Hi,
> 
> we are running 0.19.12 on a quite large cluster (over 1 billion documents, over 3TB) and suddenly the /\_node/stats function returns sometimes this error:  
> {  
> "error" : "ArithmeticException[Value cannot fit in an int: 2562047788015]",  
> "status" : 500  
> }
> 
> after some search we found out that the problem is in the os-stats, they return this error. We query this stats every 10 seconds and around 50% of them are failing.  
> The machines are all Ubuntu 12.04 LTS Servers on Amazon running Openjdk.
> 
> Any idea why this is happening? Will this happen in 0.2x too?
> 
> Thank you,  
> Max
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max/32/2236_2.png) [@max](https://discuss.elastic.co/u/max)\
**Post date:** [March 3, 2013, 11:01am UTC](https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944/3 "2013-03-03T11:01:23Z")

</div>

Hi,

because when i set os=false in the url it never failed.  
The problem in our case was one server in the cluster that had a network  
issue, thats why it failed the query. But then the stats should return the  
results from all other servers in the cluster, and not only an error  
message, or?

Thank you,  
Max

Am Donnerstag, 28. Februar 2013 08:56:54 UTC+1 schrieb kimchy:

> We fixed a similar problem with filter cache stats (its in 0.20). What led  
> you to believe its in os stats?
> 
> On Feb 28, 2013, at 8:51 AM, Max Kossatz \<[m...@kossatz.com](mailto:m...@kossatz.com) \<javascript:\>\>  
> wrote:
> 
> Hi,
> 
> we are running 0.19.12 on a quite large cluster (over 1 billion documents,  
> over 3TB) and suddenly the /\_node/stats function returns sometimes this  
> error:  
> {  
> "error" : "ArithmeticException[Value cannot fit in an int:  
> 2562047788015]",  
> "status" : 500  
> }
> 
> after some search we found out that the problem is in the os-stats, they  
> return this error. We query this stats every 10 seconds and around 50% of  
> them are failing.  
> The machines are all Ubuntu 12.04 LTS Servers on Amazon running Openjdk.
> 
> Any idea why this is happening? Will this happen in 0.2x too?
> 
> Thank you,  
> Max
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:48am UTC](https://discuss.elastic.co/t/nodes-stats-returns-sometimes-arithmeticexception/10944/4 "2017-07-06T02:48:42Z")

</div>


