Skip to content

Instantly share code, notes, and snippets.

View RawSanj's full-sized avatar
🏠
Working from home

Sanjay Rawat RawSanj

🏠
Working from home
View GitHub Profile
package org.springsource.examples.spring31.web.config;
// ...
@Configuration
@EnableWebMvc
@ComponentScan(basePackageClasses = { ViewController.class, CustomerService.class })
public class WebMvcConfiguration {
@RawSanj
RawSanj / windowsdiego.md
Created April 29, 2017 18:53 — forked from sneal/windowsdiego.md
Add Windows diego to dev pcf

This builds upon the exsting PcfDev Vagrant box by adding a Windows 2012R2 cell capable of hosting .NET 4.5 applications.

Bring up the PcfDev Vagrant box

Add the following provisioner block before the existing provisioner block in the PcfDev Vagrantfile and before you initially bring up the box:

  # Special provisioner to support Windows Cells
 config.vm.provision "shell", run: "once" do |s|
@RawSanj
RawSanj / README.md
Created May 4, 2017 02:54 — forked from polvi/README.md
HDFS of Kubernetes

Easiest HDFS cluster in the world with kubernetes.

Inspiration from kimoonkim/kubernetes-HDFS

kubectl create -f namenode.yaml
kubectl create -f datanode.yaml

Setup a port-forward to so you can see it is alive:

@RawSanj
RawSanj / native-mem-tracking.md
Created December 7, 2018 05:16 — forked from prasanthj/native-mem-tracking.md
Native memory tracking in JVM

Enable native memory tracking in JVM by specifying the following flag

-XX:NativeMemoryTracking=detail

Know the <PID> of the java process

jps

To print ps based RSS

ps -p <PID> -o pcpu,rss,size,vsize

To print native memory tracking summary