Changes for page Debugging
Last modified by Simon Urli on 2023/10/10 11:46
From version 39.1
edited by Vincent Massol
on 2019/03/23 19:59
on 2019/03/23 19:59
Change comment:
There is no comment for this version
To version 41.1
edited by Thomas Mortagne
on 2019/08/02 10:55
on 2019/08/02 10:55
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. VincentMassol1 +xwiki:XWiki.ThomasMortagne - Content
-
... ... @@ -276,14 +276,45 @@ 276 276 IF TRUE 277 277 DO traceln("remove lock for doc = [" + $this + "]") 278 278 ENDRULE 279 + 280 +RULE XWiki Get Lock 281 +CLASS XWikiDocument 282 +METHOD getLock 283 +AT ENTRY 284 +IF TRUE 285 +DO traceln("get lock for doc = [" + $this + "]") 286 +ENDRULE 279 279 {{/code}} 280 280 289 +When you click edit and then cancel on a doc you get for example: 290 + 291 +{{code}} 292 +// Edit 293 +get lock for doc = [Sandbox.WebHome] 294 +set lock for user [XWiki.Admin], doc = [Sandbox.WebHome] 295 +get lock for doc = [Sandbox.WebHome] 296 +get lock for doc = [Sandbox.WebHome] 297 +set lock for user [XWiki.Admin], doc = [Sandbox.WebHome] 298 + 299 +// Cancel 300 +get lock for doc = [Sandbox.WebHome] 301 +remove lock for doc = [Sandbox.WebHome] 302 +{{/code}} 303 + 281 281 When you click edit and then save on a doc you get for example: 282 282 283 283 {{code}} 307 +// Edit 308 +get lock for doc = [Sandbox.WebHome] 284 284 set lock for user [XWiki.Admin], doc = [Sandbox.WebHome] 310 +get lock for doc = [Sandbox.WebHome] 311 +get lock for doc = [Sandbox.WebHome] 285 285 set lock for user [XWiki.Admin], doc = [Sandbox.WebHome] 313 + 314 +// Save 315 +get lock for doc = [Sandbox.WebHome] 286 286 remove lock for doc = [Sandbox.WebHome] 317 +get lock for doc = [Sandbox.WebHome] 287 287 {{/code}} 288 288 289 289 === Troubleshooting === ... ... @@ -292,7 +292,7 @@ 292 292 293 293 If you get the following exception, it can mean that you're on Mac and that your ##tools.jar## is not added to the classpath. Apparently ##bminstall.sh## thinks that if you're on Mac then you don't need ##tools.jar## which is apparently wrong nowadays. 294 294 295 -{{code language= 'none'}}326 +{{code language="none"}} 296 296 Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException 297 297 at java.lang.Class.getDeclaredMethods0(Native Method) 298 298 at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ... ... @@ -311,7 +311,7 @@ 311 311 312 312 In this case, edit ##bminstall.sh## and add the following line below the ##OS=`uname`## line in order to override it: 313 313 314 -{{code language= 'none'}}345 +{{code language="none"}} 315 315 OS=whatever 316 316 {{/code}} 317 317 ... ... @@ -362,6 +362,6 @@ 362 362 363 363 = Analyze Out Of Memory issues = 364 364 365 -You can enable automatic memory dump when using ##-XX:+HeapDumpOnOutOfMemoryError## which will generate a memory dump as soon as Java detect an Out Of memory error. 396 +You can enable automatic memory dump when using ##-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/where/to/save/the/memory/dumps ## which will generate a memory dump as soon as Java detect an Out Of memory error. See https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html#CHDFDIJI for more details. 366 366 367 367 Since 7.2RC1 the option is enabled by default in Jetty based distributions and the memory dump will ends up in ##data/## folder.