TarsCloud / Tars

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.
BSD 3-Clause "New" or "Revised" License
9.8k stars 2.08k forks source link

Call the service more frequently and the service will restart. What is the solution? #689

Closed TARS-Question closed 4 years ago

TARS-Question commented 4 years ago

#689

If the A service calls the B service interface too fast, the B service will restart, and there will be no problem calling at a very slow frequency.

TARS-Answer commented 4 years ago

There should still be problems with the service itself. For example, there are some thread safety problems in it. If the number of calls is small, it is generally difficult to trigger. If the concurrency is large, it is easy to trigger.

TARS-Answer commented 4 years ago

应该还是服务本身有问题,比如里面有些线程安全的问题,调用量小一般难触发,并发量大一些,就容易触发。

TARS-Question commented 4 years ago

The application has not found any problems for the time being.

TARS-Question commented 4 years ago

应用程序暂时没有发现有什么问题。

TARS-Answer commented 4 years ago

The application has not found any problems for the time being.

TARS-Answer commented 4 years ago

也没core?没道理突然退出,看看是否开启了core。

TARS-Question commented 4 years ago

How to set the core switch?

TARS-Question commented 4 years ago

怎么设置core开关?

TARS-Answer commented 4 years ago

Ulimit-c unlimited, first look at ulimit to see if the core is not allowed.

TARS-Answer commented 4 years ago

ulimit-c unlimited,先看下ulimit,看是不是不让core

TARS-Question commented 4 years ago

Ulimit - C is 0. Do I need to restart tars after opening it?

TARS-Question commented 4 years ago

ulimit -c是0,打开后要重启Tars吗?

TARS-Answer commented 4 years ago

Restart tarsnode, and then restart the service.

TARS-Answer commented 4 years ago

重启tarsnode,然后重启服务。

TARS-Question commented 4 years ago

The core file is still not found.

TARS-Question commented 4 years ago

还是没有发现core文件。

TARS-Answer commented 4 years ago

Did you exit from your program?

TARS-Answer commented 4 years ago

自己程序里exit了吗?

TARS-Question commented 4 years ago

No exit, but a panic.

TARS-Question commented 4 years ago

没有exit,但有Panic。

TARS-Answer commented 4 years ago

Panic will quit.

TARS-Answer commented 4 years ago

panic就会退出。