This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ajp-bio-8009-exec-37" daemon prio=10 tid=0x00007f346c048000 nid=0xd1b5 runnable [0x00007f3375540000] | |
java.lang.Thread.State: RUNNABLE | |
at java.util.HashMap.get(HashMap.java:303) | |
at com.liferay.portal.security.permission.ResourceActionsImpl.getActions(ResourceActionsImpl.java:724) | |
at com.liferay.portal.security.permission.ResourceActionsImpl.getPortletResourceGuestUnsupportedActions(ResourceActionsImpl.java:421) | |
at com.liferay.portal.security.permission.ResourceActionsUtil.getPortletResourceGuestUnsupportedActions(ResourceActionsUtil.java:199) | |
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasGuestPermission(AdvancedPermissionChecker.java:905) | |
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermissionImpl(AdvancedPermissionChecker.java:963) | |
at com.liferay.portal.security.permission.AdvancedPermissionChecker.hasPermission(AdvancedPermissionChecker.java:603) | |
at com.liferay.portal.service.permission.PortletPermissionImpl.contains(PortletPermissionImpl.java:28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0SECTION TITLE subcomponent dump routine | |
NULL =============================== | |
1TICHARSET UTF-8 | |
1TISIGINFO Dump Requested By User (00100000) Through com.ibm.jvm.Dump.JavaDump | |
1TIDATETIME Date: 2015/07/24 at 14:21:28 | |
1TIFILENAME Javacore filename: /home/lcsontos/thirdfoot/sources/kungfu-concurrency-java/javacore.20150724.142128.4450.0001.txt | |
1TIREQFLAGS Request Flags: 0x81 (exclusive+preempt) | |
1TIPREPSTATE Prep State: 0x106 (vm_access+exclusive_vm_access+trace_disabled) | |
NULL ------------------------------------------------------------------------ | |
0SECTION GPINFO subcomponent dump routine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0SECTION TITLE subcomponent dump routine | |
NULL =============================== | |
1TICHARSET UTF-8 | |
1TISIGINFO Dump Requested By User (00100000) Through com.ibm.jvm.Dump.JavaDump | |
1TIDATETIME Date: 2015/07/24 at 14:21:28 | |
1TIFILENAME Javacore filename: /home/lcsontos/thirdfoot/sources/kungfu-concurrency-java/javacore.20150724.142128.4450.0003.txt | |
1TIREQFLAGS Request Flags: 0x81 (exclusive+preempt) | |
1TIPREPSTATE Prep State: 0x106 (vm_access+exclusive_vm_access+trace_disabled) | |
NULL ------------------------------------------------------------------------ | |
0SECTION GPINFO subcomponent dump routine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0SECTION TITLE subcomponent dump routine | |
NULL =============================== | |
1TICHARSET UTF-8 | |
1TISIGINFO Dump Requested By User (00100000) Through com.ibm.jvm.Dump.JavaDump | |
1TIDATETIME Date: 2015/07/24 at 14:21:28 | |
1TIFILENAME Javacore filename: /home/lcsontos/thirdfoot/sources/kungfu-concurrency-java/javacore.20150724.142128.4450.0005.txt | |
1TIREQFLAGS Request Flags: 0x81 (exclusive+preempt) | |
1TIPREPSTATE Prep State: 0x106 (vm_access+exclusive_vm_access+trace_disabled) | |
NULL ------------------------------------------------------------------------ | |
0SECTION GPINFO subcomponent dump routine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.management.*; | |
import java.lang.management.*; | |
import java.lang.ref.*; | |
import java.nio.file.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.logging.Logger; | |
import javax.management.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 <count> <delay>" | |
exit 1 | |
fi | |
count=$1 | |
delay=$2 | |
pid=$(sudo -u tomcat jps | grep Bootstrap | cut -d' ' -f1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM ( | |
SELECT | |
table_name, | |
round(((data_length + index_length) / 1024 / 1024), 2) as size_mb | |
FROM information_schema.TABLES | |
WHERE table_schema = "db_name" | |
) t | |
ORDER BY size_mb DESC | |
LIMIT 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.xml.namespace.*; | |
import javax.xml.soap.*; | |
import org.w3c.dom.*; | |
// Create the message | |
MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL); | |
SOAPMessage requestMessage = factory.createMessage(); | |
// Add a header | |
SOAPHeader header = requestMessage.getSOAPHeader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.xml.namespace.QName | |
import javax.xml.soap.* | |
import javax.xml.ws.Dispatch | |
import javax.xml.ws.Service | |
import javax.xml.ws.soap.SOAPBinding | |
import javax.xml.xpath.XPath | |
import javax.xml.xpath.XPathConstants | |
import javax.xml.xpath.XPathFactory | |
// Create the message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long getUID(byte sid, long time, byte tid, byte serial) { | |
return (sid & 0x7fL) << 56 | (time & 0xffffffffffL) << 16 | (tid & 0xff) << 8 | (serial & 0xff); | |
} |