Skip to content
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

添加连续多次查询的测试,该测试会导致iotdbserver(版本:0.13.3) 内存暴涨 #87

Closed
wants to merge 1 commit into from

Conversation

ccliushou
Copy link
Contributor

同时使用其他iotdb的c#类库(Salvini.IoTDB)测试(测试代码如下),没有导致iotdbserver 内存暴涨。怀疑thrift生成的代码是不是与iotdbserver不匹配导致的??

using Salvini.IoTDB;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.Metrics;
using System.Text;

namespace Query2
{
public class Program
{
public static string test_group_name = "root.TEST_CSHARP_CLIENT_GROUP_97209";
public static string test_device = "TEST_CSHARP_CLIENT_DEVICE";
static async Task Main(string[] args)
{
var dt=DateTime.Now;
var start = new DateTime(2022, 8, 4).AddHours(14);
var end = new DateTime(2022, 12, 31).AddHours(15);
using var client = TimeSeriesClient.CreateInstance("iotdb://root:root@127.0.0.1:6667/database=TEST_CSHARP_CLIENT_GROUP_97209");

        List<string> measurements = new List<string>();
        for (int i = 0; i < 150; i++)//150个DOUBLE_Ser_
        {
            var meas_name = string.Format("{0}.{1}.DOUBLESer{2}", test_group_name, test_device, i);
            measurements.Add(meas_name.Replace($"{test_group_name}.{test_device}.", ""));
        }

        for (int i = 0; i < 10000; i++)
        {
            var xx = await client.ArchiveAsync(measurements, start, end);
            Console.WriteLine($"***开始时间:{dt.ToLongTimeString()}*****************\n查询测试,{i}次 \n\n");

        }
        Console.WriteLine($"*****{DateTime.Now.ToLongTimeString()}***************\n查询测试完成 \n\n");

    }
}

}

lausannel added a commit that referenced this pull request Jan 10, 2023
…se of one losing parameter statementId in TSCloseOperationReq
@lausannel
Copy link
Collaborator

#88 中会解决

@lausannel
Copy link
Collaborator

已经解决~,可以使用新的1.0.0.1版本客户端

@lausannel lausannel closed this Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants