We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
can reproduce using this java code
Connection connection = null; PreparedStatement ps = null; try { connection = dataSource.getConnection(); ps = connection.prepareStatement(" INSERT INTO TEST_TBL (COL0,COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8) VALUES(?,?,?,?,?,?,?,?,NOW(3)) ON DUPLICATE KEY UPDATE COL6=values(col6), COL7=values(col7), COL8=values(col8)"); while (true) { try { for (int i1 = 0; i1 < 100; i1++) { ps.setString(1, i1 + "1"); ps.setInt(2, 1); ps.setString(3, "1"); ps.setInt(4, 1); ps.setInt(5, 1); ps.setString(6, "1"); ps.setString(7, "1"); ps.setDate(8, new Date(System.currentTimeMillis())); ps.addBatch(); } ps.executeBatch(); System.out.println("write one batch"); } catch (Exception e) { e.printStackTrace(); } } } catch (Exception e) { e.printStackTrace(); } finally { closeAll(connection, ps); }
with jdbc url param:
spring.datasource.hikari.data-source-properties.useServerPrepStmts=true spring.datasource.hikari.data-source-properties.rewriteBatchedStatements=true spring.datasource.hikari.data-source-properties.allowMultiQueries=true
tidb memory increase then keep a value
always increase and OOM
tidb-server -V
select tidb_version();
The text was updated successfully, but these errors were encountered:
lysu
No branches or pull requests
Bug Report
If possible, provide a recipe for reproducing the error.
can reproduce using this java code
with jdbc url param:
tidb memory increase then keep a value
always increase and OOM
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: