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
performance (性能优化)
public class EventHub {
private static final Logger LOG = Log.logger(EventHub.class); public static final String EVENT_WORKER = "event-worker-%d"; public static final String ANY_EVENT = "*"; private static final List<EventListener> EMPTY = ImmutableList.of(); // Event executor private static ExecutorService executor = null; private String name; private Map<String, List<EventListener>> listeners; public EventHub() { this("hub"); } public EventHub(String name) { this(name, 1); }
往hugegraph里面写数据,写数据会涉及更换图缓存,图数据相关操作,都是用eventhub来处理,但这里老是单线程池,来不及处理,导致大部分写入操作放在了单线程池的阻塞队列,该阻塞队列占用大量内存,导致后面写入操作申请不到内容,从而导致写入失败,我看你们已经把这块修复了,但是1.3.0版本还是单线程池,希望快速发布这个改动
public class EventHub { private static final Logger LOG = Log.logger(EventHub.class); public static final String EVENT_WORKER = "event-worker-%d"; public static final String ANY_EVENT = "*"; private static final List<EventListener> EMPTY = ImmutableList.of(); // Event executor private static ExecutorService executor = null; private String name; private Map<String, List<EventListener>> listeners; public EventHub() { this("hub"); } public EventHub(String name) { this(name, 1); }
无
The text was updated successfully, but these errors were encountered:
refer:
Sorry, something went wrong.
Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label
No branches or pull requests
Problem Type (问题类型)
performance (性能优化)
Before submit
Environment (环境信息)
Your Question (问题描述)
public class EventHub {
往hugegraph里面写数据,写数据会涉及更换图缓存,图数据相关操作,都是用eventhub来处理,但这里老是单线程池,来不及处理,导致大部分写入操作放在了单线程池的阻塞队列,该阻塞队列占用大量内存,导致后面写入操作申请不到内容,从而导致写入失败,我看你们已经把这块修复了,但是1.3.0版本还是单线程池,希望快速发布这个改动
Vertex/Edge example (问题点 / 边数据举例)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
无
The text was updated successfully, but these errors were encountered: