# Engine Limit values with integer max value

**URL:** <https://ask.openrouteservice.org/t/engine-limit-values-with-integer-max-value/7104>\
**Category:** matrix\
**Created:** [March 10, 2025, 2:30pm UTC](https://ask.openrouteservice.org/t/engine-limit-values-with-integer-max-value/7104 "2025-03-10T14:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erdogansonmez](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/erdogansonmez/32/3620_2.png) [@erdogansonmez](https://ask.openrouteservice.org/u/erdogansonmez)\
**Post date:** [March 10, 2025, 2:30pm UTC](https://ask.openrouteservice.org/t/engine-limit-values-with-integer-max-value/7104/1 "2025-03-10T14:30:28Z")

</div>

Hello everyone, i need increase max\_visited\_nodes more than integer max value. I got this error:

```auto
{"code":3,"error":"Unable to compute a distance/duration matrix: Search exceeds the limit of visited nodes."}

```

This is my config:

```yml
engine:
    profile_default:
      service:
        maximum_distance: 2147483647
        maximum_routes: 160000
        maximum_distance_dynamic_weights: 2147483647
        maximum_distance_avoid_areas: 2147483647
        maximum_waypoints: 2147483647
        maximum_snapping_radius: 1000
        maximum_distance_alternative_routes: 2147483647
        maximum_distance_round_trip_routes: 2147483647
        maximum_visited_nodes: 2147483647

```

When i increase the maximum\_visited\_nodes more than “2147483647” error throwed from java integer and long type converting.

---

<div class="post-metadata">

**Author:** ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)\
**Post date:** [March 10, 2025, 4:02pm UTC](https://ask.openrouteservice.org/t/engine-limit-values-with-integer-max-value/7104/2 "2025-03-10T16:02:23Z")

</div>

Hey,

as you have already opened [an issue](https://github.com/GIScience/openrouteservice/issues/1979) for that, we’ll track any progress on this there.

Out of curiosity, this is getting close to the max. number of nodes in OSM - may I ask what you are doing/analyzing that the number has to be as high?

Best regards
