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

008741 Debugging API for erloci port implementation #54

Open
stoch opened this issue Jan 16, 2018 · 0 comments
Open

008741 Debugging API for erloci port implementation #54

stoch opened this issue Jan 16, 2018 · 0 comments
Assignees

Comments

@stoch
Copy link
Contributor

stoch commented Jan 16, 2018

Operational statistics should be accessible in order to check / debug proper working conditions and possibly memory leaks:

  • Session Count
  • Statement Count
  • Allocated Buffer Sizes
  • Last Session Activity TS

Ideally, we would be able to dump internal state snapshot when needed and analyze it offline (in some open source analyzer tool or self-woven erlang tool).

If this is too difficult, compiling for debug and starting a pool or single driver in debug mode should at least be possible.

Comments so far:

Native programs like ocierl.exe or erlang VM (erl.exe) doesn’t let inspection for memory leakage or reading of any other internal process state info from outside. So at the moment we can’t debug ocierl.exe for memory leak.
However we can start ocierl.exe differently (compiled with debug) with some Microsoft memory analyzer tool (like http://valgrind.org/ in linux) and try to make it work and interpret the data. Not sure what is available and will work for erloci – requires some trial and error.
If not, please consider creating one which gives insight into the resource consumption per session and statement (together with last access timestamp if possible).
One lead to this direction would be https://msdn.microsoft.com/en-us/library/x98tx3cf.aspx a good approach to detect memory leaks. I am not sure however it can be per OCI session/statement (not even sure I can be per thread). I can’t confirm what will be possible until I try different options.

@stoch stoch changed the title Debugging API for erloci port implementation 008741 Debugging API for erloci port implementation Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants