-
Notifications
You must be signed in to change notification settings - Fork 478
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
java.lang.StackOverflowError:okhttp3 #379
Comments
At least version of influxdb-java and the code which triggers this is required. |
I'm a new programmer, and I don't know much about influxdb。
public void getData(){
StringBuffer command = new StringBuffer();
..........
OkHttpClient.Builder builder = new OkHttpClient.Builder().readTimeout(100, TimeUnit.SECONDS);
InfluxDB influxDB_query = InfluxDBFactory.connect("http://192.168.1.86:8086", "XXX", "XXX",builder);
influxDB_query.setDatabase(dbName);
influxDB_query.enableGzip();
QueryResult qr = influxDB_query.query(new Query(command.toString(), dbName),TimeUnit.MILLISECONDS);
List<QueryResult.Result> res = qr.getResults();
if(res.get(0).getSeries() != null) {
QueryResult.Series series = res.get(0).getSeries().get(0);
List<List<Object>> values = series.getValues();
..........
}
influxDB_query.close();
} |
@bbamber there are a couple of things that I would like to suggest you:
Now for the specific issue reported here, I cannot reproduce it. Could you please enable a more verbose logging by adding |
Single instance influxdb connections query a large amount of data, memory explosion occurs, when I try to establish a new query influxdb query data each time, or memory overflow occurs.
The text was updated successfully, but these errors were encountered: