Changes between Version 48 and Version 49 of Debugging
- Timestamp:
- 06/25/17 22:25:12 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Debugging
v48 v49 106 106 }}} 107 107 The packet type is the first thing in each packet and it is a simple string which makes it easy to observe traffic. 108 With version 0.9 onwards, it is best to set{{{XPRA_USE_ALIASES=0}}} to ensure that the packets will use plain-text headers rather than numeric aliases.108 It is recommended to set the environment variable {{{XPRA_USE_ALIASES=0}}} to ensure that the packets will use plain-text headers rather than numeric aliases. 109 109 }}} 110 110 … … 172 172 173 173 === In C code === 174 If the memory leak is one of the Cython parts or in a C library, use regular tools, like [http://blog.devork.be/2008/12/finding-memory-leaks-in-python.html valgrind]. When using valgrind, the connection timeout may be exceeded because the client will be slowed down. Increasing this timeout will be necessary to be able to use the client with Valgrind. With r4861 onwards, you can do this using the {{{XPRA_SOCKET_TIMEOUT}}} env var:174 If the memory leak is one of the Cython parts or in a C library, use regular tools, like [http://blog.devork.be/2008/12/finding-memory-leaks-in-python.html valgrind]. When using valgrind, the connection timeout may be exceeded because the client will be slowed down. Increasing this timeout will be necessary to be able to use the client with Valgrind. You can do this using the {{{XPRA_SOCKET_TIMEOUT}}} environment variable: 175 175 {{{ 176 176 XPRA_SOCKET_TIMEOUT=30 xpra attach ... … … 178 178 179 179 === In python code === 180 As of version 0.13, it is possible to get the server to print every 10 seconds the objects which seem to be leaking by startingthe server with the environment variable {{{XPRA_DETECT_LEAKS}}} set to {{{1}}}.180 To make the server print the objects which seem to be leaking every 10 seconds, start the server with the environment variable {{{XPRA_DETECT_LEAKS}}} set to {{{1}}}. 181 181 182 182 [[BR]]