This file contains hidden or 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
Exclude enpoint from security: | |
- WebSecurityConfigurerAdapter override: | |
@Override | |
public void configure(WebSecurity web) throws Exception { | |
web.ignoring().antMatchers("/path/**"); | |
} |
This file contains hidden or 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
1. CachedIntrospectionResults.<init> takes a lot of time. Every BeanWrapper passes from CachedIntrospectionResults.forClass, it inokes | |
(if absent in static cache) Introspector.getBeanInfo which takes a lot of time. Cache usage occurs at | |
AbstractApplicationContext.finishBeanFactoryInitialization in scope of refresh() method but at the end of refresh method in finally block | |
there is call to resetCommonCaches: | |
protected void resetCommonCaches() { | |
ReflectionUtils.clearCache(); | |
ResolvableType.clearCache(); | |
CachedIntrospectionResults.clearClassLoader(getClassLoader()); // <---- remove it | |
} |
This file contains hidden or 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
1. Create index | |
curl -X PUT "http://<>:9200/index-name" -d '{ | |
"mappings": { | |
"record": { | |
"properties": { | |
"actionStartedOn": { | |
"type": "date" | |
}, | |
"rddCount": { | |
"type": "long" |
This file contains hidden or 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
1.Import csv file to hdfs: | |
export HADOOP_USER_NAME=impala | |
./hadoop fs -put /Users/gennadii/dev/performance_impala.csv hdfs://<host>:<port>/user/impala/performance_impala.csv | |
2.Create IDEA datasource Impala using Impala JDBC driver (all jars in zip) | |
3.Create connection | |
jdbc:impala://<host>:<port> | |
4.Create table (the same name as file): |
This file contains hidden or 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
org.springframework.boot.BeanDefinitionLoader | |
parse @Config classes: | |
org.springframework.context.support.AbstractApplicationContext#refresh -> | |
org.springframework.context.support.AbstractApplicationContext#invokeBeanFactoryPostProcessors -> | |
org.springframework.context.annotation.ConfigurationClassPostProcessor#postProcessBeanDefinitionRegistry -> | |
org.springframework.context.annotation.ConfigurationClassPostProcessor#processConfigBeanDefinitions -> | |
org.springframework.context.annotation.ConfigurationClassParser#parse |
This file contains hidden or 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
TransactionSynchronizationManager.registerSynchronization( | |
new TransactionSynchronizationAdapter() { | |
@Override | |
public void afterCommit() { | |
fireAfterSaveEvent(oldSourceFinal, updatedSource); | |
} | |
} | |
); |
This file contains hidden or 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
sudo /usr/java/jdk1.8.0_60/bin/jstack -F -m 29186 | |
print stacktrace for every thread, -m includes native | |
sudo /usr/java/jdk1.8.0_60/bin/jmap -histo:live 29186 | |
prints histogram of java objects |
This file contains hidden or 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
# Execute select: | |
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor#executeSelect | |
# Build object form row: | |
org.eclipse.persistence.internal.descriptors.ObjectBuilder#buildObject | |
org.eclipse.persistence.internal.descriptors.ObjectBuilder#buildWorkingCopyCloneFromRow | |
# Profile: | |
interface: org.eclipse.persistence.sessions.SessionProfiler | |
eclipselink.profiler=org.eclipse.persistence.tools.profiler.PerformanceProfiler |
This file contains hidden or 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
org.springframework.web.filter.DelegatingFilterProxy#doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) | |
if (delegateToUse == null) | |
WebApplicationContext wac = findWebApplicationContext() | |
delegate = wac.getBean("springSecurityFilterChain, Filter.class) | |
org.springframework.web.filter.DelegatingFilterProxy#invokeDelegate(delegate, request, response, filterChain) | |
delegate.doFilter(request, response, filterChain) | |
org.springframework.security.web.FilterChainProxy#doFilter(ServletRequest request, ServletResponse response, FilterChain chain) | |
org.springframework.security.web.FilterChainProxy#doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain) | |
List<Filter> filters = getFilters(fwRequest) | |
for (SecurityFilterChain chain : filterChains) |