SlideShare a Scribd company logo
1 of 46
Download to read offline
NSD ‘Crash Course’
Gregory Engels, Kompurity
ILUG 2010
Some Rights Reserved
Copyright 2010 by Gregory Engels,
Kompurity. Except where otherwise
noted, this work is licensed under the
Creative Commons Attribution Share
Alike 3.0 License
About me
Gregory Engels
Born in Moscow, live in Frankfurt, Germany
since 1989
Been around Lotus Notes since 1998
Advanced Certified Domino Developer and
Admin and Security R5, R6, R7, R8
Co-Author "Migrating
Microsoft Exchange 2000/2003 to IBM Lotus
Notes 7"
Founder Kompurity http://www.kompurity.de
Specialize in Hosting, Infrastructure
management
Blog: http://inotes.de
Twitter: dichter
Agenda
• NSD
• ADC
• Upgrading NSD
• LND
• Notes Systems Diagnostic
• binary on W32 and iSeries
• shell script nsd.sh on Unix
What is NSD
Running the NSD
• Manually
• Automatically as part of Fault
Recovery
• Enabled by default
• Enable it in the
Server document
• Go enable it now.
Fault Recovery
Help is on the way
• nsd -help
Automated Data
Collection (ADC)
Enable in the Config Doc
Enable in Desktop Policy
Fault Reports DB
Put this in the nsd.ini
• canceldisable=1
• (BOFH tip of the day)
Real Life
• ADC Enabled 9 Month ago
• User Population c.a. 6000 Users
• 1700 Users have created at least 1
NSD
• c.a. 13000 Client NSD
• 13 Users (0.05%) created 1700 NSD
(14%)
How often does Notes
Crashes?
0
10
20
30
40
50
60
70
80
90
100
1 5 9 14 21 30 52 75 163 1258
Number of Users that had N Crashes
Occurency
Number of NSDs per
User
0
375
750
1125
1500
Occurences
NSD’s per Day
0
18
36
54
72
90
22.08.2009 25.08.2009 28.08.2009 31.08.2009 03.09.2009 06.09.2009 09.09.2009
12.09.2009 15.09.2009 18.09.2009 21.09.2009
24.09.2009
Upgrading NSD
• See TN #4013182 for ftp links
• See TN #1233676 for list of SPR’s
fixed
• Version of NSD is
<NotesVersion><Fixpack>.<YNNN>
• NNN = Days since year begin
• example: NSD 8.0.10.8057 (Release
8.0.1) = Feb 27 2008 (57 Days since
Jan 01)
Reading the NSD log
Finding the log
• Logs are stored in the
IBM_TECHNICAL_SUPPORT
subdirectory
• in the Lotus Notes Domino Fault
Reports Database lndfr.nsf
• ND6 - nsd_all_<Platform>_<Host>_MM_DD@HH_MM.log
• ND7 -
nsd_<Platform>_<ServerName>_YYYY_MM_DD@HH_MM_SS.log
Contents of the NSD
• Rather verbose
• Process Info (Call Stack)
• Memcheck (Domino Memory
Objects)
• System Information
• Environment Information
• Process Information (Call Stacks) –
Process Information is composed of
the list of all running processes
system wide, followed by a list of all
Domino specific processes.
• the code path involved in a particular
problem.
• Memcheck (Domino Memory Objects)
– The Memcheck section dumps
information about Domino-specific
structures.
• memory pools (both private and
shared)
• list of open resources such as open
database, open view, open documents,
connected users, and open files.
• System Information – This section
provides information regarding
version of OS,
• kernel configurations, patch
information, disk information,
network connections, and memory
usage.
• Environment Information:
• user environment,
• notes.ini,
• file listing
Finding the fault
• Look for the words FATAL, PANIC, ETC
### FATAL THREAD 67/135 [ nSERVER:0908: 2692]
### FP=0x0ae5ec70, PC=0x6018eb23, SP=0x0ae5e2f8
### stkbase=0ae60000, total stksize=262144, used stksize=2424
### EAX=0x010d088c, EBX=0x00000000, ECX=0x00ba0000, EDX=0x00ba0000
### ESI=0x0ae5e904, EDI=0x00001d34, CS=0x0000001b, SS=0x00000023
### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000
Flags=0x00010202 Exception code: c0000005 (ACCESS_VIOLATION)
Process ID: Thread ID
Reading the Callstack
############################################################
### FATAL THREAD 1/4 [ncompact: 3044: 2620]
### FP=0x0012e644, PC=0x60193297, SP=0x0012dacc, stksize=2936
### EAX=0x00e3088c, EBX=0x00000000, ECX=0x00900000, EDX=0x00900000
### ESI=0x0012e1d8, EDI=0x00d495d8, CS=0x0000001b, SS=0x00000023
### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010202
Exception code: c0000005 (ACCESS_VIOLATION)
############################################################
@[ 1] 0x60193297 nnotes._Panic@4+631 (60a30013)
@[ 2] 0x600027a6 nnotes._LockHandle@12+294 (3963e26,12e674,12e680)
@[ 3] 0x600025e7 nnotes._OSLockObject@4+23 (60c7df40)
@[ 4] 0x606c09cc nnotes.CArchSetPolicy::GetPrivateArchiveSettings+3404 (1)
@[ 5] 0x606bf1a8 nnotes.CArchSetPolicy::GetArchiveSettings+1032 (0)
@[ 6] 0x606be9f9 nnotes.CArchSetPolicy::Init+553 (33a0a99)
@[ 7] 0x606c7554 nnotes._PolicyCheckServerArchiveEnabled@4+52 (a9)
@[ 8] 0x606e2fc1 nnotes._CheckServerArchiveEnabled+113 (10900a9)
@[ 9] 0x00402111 nCompact._CompactFile@16+529 (0,a9,81000000,0)
@[10] 0x00401b61 nCompact._AddInMain@12+2913 (3,3,398644)
@[11] 0x004028cf nCompact._NotesMain@8+47 (3,400000)
@[12] 0x004029d6 nCompact._notes_main+214 (0,0)
@[13] 0x004028f6 nCompact._main+22 (3,3b2da0)
@[14] 0x00402cc1 nCompact._mainCRTStartup+197 (0,0)
@[15] 0x7c816ff7 KERNEL32.RegisterWaitForInputIdle+105 (402bfc,0)
Pid : Tid
Finding the Resources
• Search for “Open Databases”
• Search for “Open Documents”
DBH NOTEID HANDLE CLASS FLAGS IsProf #Pools #Items Size Database
531 7330 0x24ff 0x0001 0x0200 Yes 1 4 2984 d:notedata
drmailjsmith.nsf
Open By: CN=John Smith/O=ACME/C=US
Flags2 = 0x0404
Flags3 = 0x0000
OrigHDB = 531
First Item = [ 9471: 836]
Last Item = [ 9471: 1228]
Non-pool size : 0
Note Class Description
• 0x0001 Data Note (document)
• 0x0004 Form Note
• 0x0008 View note
• 0x0040 ACL Note
• 0x0200 Agent Note
• 0x0800 Replication Formula Note
Search for VTread info
• Search on KEYWORDs “Resource
Usage” or “Resource Usage Summary”
• Search on KEYWORD “Process” until
you located the necessary process ID
• Search on the PHYSICAL THREAD ID
of the thread you are interested in
(cosection after you have looked at
call stacks)
Troubleshooting NSD
• Try NSD -info
• If this runs to completion, perhaps
there is a problem with the pid.nbf
file
• Try upgrading NSD
• Check if symbols are installed
• lotusnotes.sym
LND Tool
• See TN # 4019151 for download link
• ftp://ftp.software.ibm.com/software/
lotus/tools/LND_2.8_Setup.zip
Auto KB Seatch
See the Process
Resources
Works on Right-Click
in Explorer
Questions
Thank You!
• Please fill out the evaluation (so I can
get back next year)
• Contact: Gregory.Engels ※
kompurity.de
Blog http://inotes.de
twitter: dichter
Backup
NSD parameters
• nsd –stack (collects only call stacks, speeds execution)
• nsd –info (collects only system info)
• nsd –noinfo (collects all but info)
• nsd –memcheck (collects only memcheck info)
• nsd –nomemcheck (collects all but memcheck)
• nsd –perf (collects process memory usage)
• nsd –noperf (collects all but performance data)
• nsd –handles (collects OS level handle info)
• nsd –nohandles (collects all but handle info)
• nsd –kill (kills all notes process and associated memory)
• nsd –monitor (attaches and waits for exceptions)
• nsd –p (runs against a specific process – call stacks only)

More Related Content

What's hot

Mac Memory Analysis with Volatility
Mac Memory Analysis with VolatilityMac Memory Analysis with Volatility
Mac Memory Analysis with VolatilityAndrew Case
 
Malware analysis using volatility
Malware analysis using volatilityMalware analysis using volatility
Malware analysis using volatilityYashashree Gund
 
Modern Kernel Pool Exploitation: Attacks and Techniques
Modern Kernel Pool Exploitation: Attacks and TechniquesModern Kernel Pool Exploitation: Attacks and Techniques
Modern Kernel Pool Exploitation: Attacks and TechniquesMichael Scovetta
 
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7Hackito Ergo Sum
 
Examining Linux File Structures
Examining Linux File StructuresExamining Linux File Structures
Examining Linux File Structuresprimeteacher32
 
AOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocksAOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocksZubair Nabi
 
AOS Lab 12: Network Communication
AOS Lab 12: Network CommunicationAOS Lab 12: Network Communication
AOS Lab 12: Network CommunicationZubair Nabi
 

What's hot (10)

Mac Memory Analysis with Volatility
Mac Memory Analysis with VolatilityMac Memory Analysis with Volatility
Mac Memory Analysis with Volatility
 
Ubuntu OS Presentation
Ubuntu OS PresentationUbuntu OS Presentation
Ubuntu OS Presentation
 
Malware analysis using volatility
Malware analysis using volatilityMalware analysis using volatility
Malware analysis using volatility
 
Modern Kernel Pool Exploitation: Attacks and Techniques
Modern Kernel Pool Exploitation: Attacks and TechniquesModern Kernel Pool Exploitation: Attacks and Techniques
Modern Kernel Pool Exploitation: Attacks and Techniques
 
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7
HES2011 - Tarjei Mandt – Kernel Pool Exploitation on Windows 7
 
March 2011 HUG: HDFS Federation
March 2011 HUG: HDFS FederationMarch 2011 HUG: HDFS Federation
March 2011 HUG: HDFS Federation
 
Examining Linux File Structures
Examining Linux File StructuresExamining Linux File Structures
Examining Linux File Structures
 
AOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocksAOS Lab 9: File system -- Of buffers, logs, and blocks
AOS Lab 9: File system -- Of buffers, logs, and blocks
 
Storage Systems
Storage SystemsStorage Systems
Storage Systems
 
AOS Lab 12: Network Communication
AOS Lab 12: Network CommunicationAOS Lab 12: Network Communication
AOS Lab 12: Network Communication
 

Viewers also liked

Innovative Solutions In Concrete
Innovative Solutions In ConcreteInnovative Solutions In Concrete
Innovative Solutions In ConcreteLukasz Kisiel
 
Natural Paint: Sustainable Solutions
Natural Paint: Sustainable SolutionsNatural Paint: Sustainable Solutions
Natural Paint: Sustainable SolutionsLukasz Kisiel
 
5 Ways to Increase your Productivity On-Site
5 Ways to Increase your Productivity On-Site5 Ways to Increase your Productivity On-Site
5 Ways to Increase your Productivity On-SiteBridgit
 
Promoting Sustainability: Carbon Action 2050
Promoting Sustainability: Carbon Action 2050Promoting Sustainability: Carbon Action 2050
Promoting Sustainability: Carbon Action 2050Lukasz Kisiel
 
Copyright for the Digital Age
Copyright for the Digital AgeCopyright for the Digital Age
Copyright for the Digital AgeGrégory Engels
 
Looking Toward the Future: How Technology will Change the Consturction Industry
Looking Toward the Future: How Technology will Change the Consturction IndustryLooking Toward the Future: How Technology will Change the Consturction Industry
Looking Toward the Future: How Technology will Change the Consturction IndustryLukasz Kisiel
 
I Know What You Will Do Next Summer
I Know What You Will Do Next SummerI Know What You Will Do Next Summer
I Know What You Will Do Next SummerGrégory Engels
 
3 Skills That Matter For Construction Managers
3 Skills That Matter For Construction Managers3 Skills That Matter For Construction Managers
3 Skills That Matter For Construction ManagersLukasz Kisiel
 
Sustainable Construction and Design Trends to Watch For in 2016
Sustainable Construction and Design Trends to Watch For in 2016Sustainable Construction and Design Trends to Watch For in 2016
Sustainable Construction and Design Trends to Watch For in 2016Lukasz Kisiel
 
Piraten Aller Länder, Vereinigt Euch
Piraten Aller Länder, Vereinigt EuchPiraten Aller Länder, Vereinigt Euch
Piraten Aller Länder, Vereinigt EuchGrégory Engels
 
Living Green Guide: After The Build
Living Green Guide: After The BuildLiving Green Guide: After The Build
Living Green Guide: After The BuildLukasz Kisiel
 
There is No Such Thing as "Intellectual Property"
There is No Such Thing as "Intellectual Property"There is No Such Thing as "Intellectual Property"
There is No Such Thing as "Intellectual Property"Grégory Engels
 
Brexit or Stronger In?
Brexit or Stronger In?Brexit or Stronger In?
Brexit or Stronger In?Lukasz Kisiel
 
5 Advancements In Construction Science
5 Advancements In Construction Science5 Advancements In Construction Science
5 Advancements In Construction ScienceLukasz Kisiel
 
3 Ways Module Construction Helps The Environment
3 Ways Module Construction Helps The Environment3 Ways Module Construction Helps The Environment
3 Ways Module Construction Helps The EnvironmentLukasz Kisiel
 
Twitter Statistics & Case Studies
Twitter Statistics & Case StudiesTwitter Statistics & Case Studies
Twitter Statistics & Case StudiesRocky Fu
 
Punch list app_software
Punch list app_softwarePunch list app_software
Punch list app_softwareBridgit
 
London's "Tech Belt" Propels Construction Growth
London's "Tech Belt" Propels Construction GrowthLondon's "Tech Belt" Propels Construction Growth
London's "Tech Belt" Propels Construction GrowthLukasz Kisiel
 
Construction Technology Trends - MCAA Tech Conference 2015
Construction Technology Trends - MCAA Tech Conference 2015Construction Technology Trends - MCAA Tech Conference 2015
Construction Technology Trends - MCAA Tech Conference 2015Bridgit
 

Viewers also liked (20)

Innovative Solutions In Concrete
Innovative Solutions In ConcreteInnovative Solutions In Concrete
Innovative Solutions In Concrete
 
Natural Paint: Sustainable Solutions
Natural Paint: Sustainable SolutionsNatural Paint: Sustainable Solutions
Natural Paint: Sustainable Solutions
 
Zukunftsdenken
ZukunftsdenkenZukunftsdenken
Zukunftsdenken
 
5 Ways to Increase your Productivity On-Site
5 Ways to Increase your Productivity On-Site5 Ways to Increase your Productivity On-Site
5 Ways to Increase your Productivity On-Site
 
Promoting Sustainability: Carbon Action 2050
Promoting Sustainability: Carbon Action 2050Promoting Sustainability: Carbon Action 2050
Promoting Sustainability: Carbon Action 2050
 
Copyright for the Digital Age
Copyright for the Digital AgeCopyright for the Digital Age
Copyright for the Digital Age
 
Looking Toward the Future: How Technology will Change the Consturction Industry
Looking Toward the Future: How Technology will Change the Consturction IndustryLooking Toward the Future: How Technology will Change the Consturction Industry
Looking Toward the Future: How Technology will Change the Consturction Industry
 
I Know What You Will Do Next Summer
I Know What You Will Do Next SummerI Know What You Will Do Next Summer
I Know What You Will Do Next Summer
 
3 Skills That Matter For Construction Managers
3 Skills That Matter For Construction Managers3 Skills That Matter For Construction Managers
3 Skills That Matter For Construction Managers
 
Sustainable Construction and Design Trends to Watch For in 2016
Sustainable Construction and Design Trends to Watch For in 2016Sustainable Construction and Design Trends to Watch For in 2016
Sustainable Construction and Design Trends to Watch For in 2016
 
Piraten Aller Länder, Vereinigt Euch
Piraten Aller Länder, Vereinigt EuchPiraten Aller Länder, Vereinigt Euch
Piraten Aller Länder, Vereinigt Euch
 
Living Green Guide: After The Build
Living Green Guide: After The BuildLiving Green Guide: After The Build
Living Green Guide: After The Build
 
There is No Such Thing as "Intellectual Property"
There is No Such Thing as "Intellectual Property"There is No Such Thing as "Intellectual Property"
There is No Such Thing as "Intellectual Property"
 
Brexit or Stronger In?
Brexit or Stronger In?Brexit or Stronger In?
Brexit or Stronger In?
 
5 Advancements In Construction Science
5 Advancements In Construction Science5 Advancements In Construction Science
5 Advancements In Construction Science
 
3 Ways Module Construction Helps The Environment
3 Ways Module Construction Helps The Environment3 Ways Module Construction Helps The Environment
3 Ways Module Construction Helps The Environment
 
Twitter Statistics & Case Studies
Twitter Statistics & Case StudiesTwitter Statistics & Case Studies
Twitter Statistics & Case Studies
 
Punch list app_software
Punch list app_softwarePunch list app_software
Punch list app_software
 
London's "Tech Belt" Propels Construction Growth
London's "Tech Belt" Propels Construction GrowthLondon's "Tech Belt" Propels Construction Growth
London's "Tech Belt" Propels Construction Growth
 
Construction Technology Trends - MCAA Tech Conference 2015
Construction Technology Trends - MCAA Tech Conference 2015Construction Technology Trends - MCAA Tech Conference 2015
Construction Technology Trends - MCAA Tech Conference 2015
 

Similar to Gregory engels nsd crash course - ilug10

Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)hypervnu
 
Workshop - Linux Memory Analysis with Volatility
Workshop - Linux Memory Analysis with VolatilityWorkshop - Linux Memory Analysis with Volatility
Workshop - Linux Memory Analysis with VolatilityAndrew Case
 
engage 2019 - 15 Domino v10 Admin features we LOVE
engage 2019 - 15 Domino v10 Admin features we LOVEengage 2019 - 15 Domino v10 Admin features we LOVE
engage 2019 - 15 Domino v10 Admin features we LOVEChristoph Adler
 
Windows 7 forensics -overview-r3
Windows 7 forensics -overview-r3Windows 7 forensics -overview-r3
Windows 7 forensics -overview-r3CTIN
 
CNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgCNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgSam Bowne
 
Linux Char Device Driver
Linux Char Device DriverLinux Char Device Driver
Linux Char Device DriverGary Yeh
 
One-Byte Modification for Breaking Memory Forensic Analysis
One-Byte Modification for Breaking Memory Forensic AnalysisOne-Byte Modification for Breaking Memory Forensic Analysis
One-Byte Modification for Breaking Memory Forensic AnalysisTakahiro Haruyama
 
Solaris DTrace, An Introduction
Solaris DTrace, An IntroductionSolaris DTrace, An Introduction
Solaris DTrace, An Introductionsatyajit_t
 
Ops Jumpstart: MongoDB Administration 101
Ops Jumpstart: MongoDB Administration 101Ops Jumpstart: MongoDB Administration 101
Ops Jumpstart: MongoDB Administration 101MongoDB
 
CNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgCNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgSam Bowne
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)MongoDB
 
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...InfluxData
 
Live Memory Forensics on Android devices
Live Memory Forensics on Android devicesLive Memory Forensics on Android devices
Live Memory Forensics on Android devicesNikos Gkogkos
 
10 Tips for AIX Security
10 Tips for AIX Security10 Tips for AIX Security
10 Tips for AIX SecurityHelpSystems
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment StrategyMongoDB
 

Similar to Gregory engels nsd crash course - ilug10 (20)

Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)Windows 8 dddd (beekelaar)
Windows 8 dddd (beekelaar)
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Workshop - Linux Memory Analysis with Volatility
Workshop - Linux Memory Analysis with VolatilityWorkshop - Linux Memory Analysis with Volatility
Workshop - Linux Memory Analysis with Volatility
 
engage 2019 - 15 Domino v10 Admin features we LOVE
engage 2019 - 15 Domino v10 Admin features we LOVEengage 2019 - 15 Domino v10 Admin features we LOVE
engage 2019 - 15 Domino v10 Admin features we LOVE
 
Disk forensics
Disk forensicsDisk forensics
Disk forensics
 
Windows 7 forensics -overview-r3
Windows 7 forensics -overview-r3Windows 7 forensics -overview-r3
Windows 7 forensics -overview-r3
 
CNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgCNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbg
 
Dns firewalls null-may2020
Dns firewalls null-may2020Dns firewalls null-may2020
Dns firewalls null-may2020
 
Linux Char Device Driver
Linux Char Device DriverLinux Char Device Driver
Linux Char Device Driver
 
One-Byte Modification for Breaking Memory Forensic Analysis
One-Byte Modification for Breaking Memory Forensic AnalysisOne-Byte Modification for Breaking Memory Forensic Analysis
One-Byte Modification for Breaking Memory Forensic Analysis
 
Solaris DTrace, An Introduction
Solaris DTrace, An IntroductionSolaris DTrace, An Introduction
Solaris DTrace, An Introduction
 
Ops Jumpstart: MongoDB Administration 101
Ops Jumpstart: MongoDB Administration 101Ops Jumpstart: MongoDB Administration 101
Ops Jumpstart: MongoDB Administration 101
 
CNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbgCNIT 126: 10: Kernel Debugging with WinDbg
CNIT 126: 10: Kernel Debugging with WinDbg
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
 
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
 
Windows forensic
Windows forensicWindows forensic
Windows forensic
 
Live Memory Forensics on Android devices
Live Memory Forensics on Android devicesLive Memory Forensics on Android devices
Live Memory Forensics on Android devices
 
Hdfs architecture
Hdfs architectureHdfs architecture
Hdfs architecture
 
10 Tips for AIX Security
10 Tips for AIX Security10 Tips for AIX Security
10 Tips for AIX Security
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
 

More from Grégory Engels

PrivacyDay2021: German experience around privacy and covid
PrivacyDay2021: German experience around privacy and covidPrivacyDay2021: German experience around privacy and covid
PrivacyDay2021: German experience around privacy and covidGrégory Engels
 
Shared Economy - Airbnb and the Cities Housing Crisis
Shared Economy - Airbnb and the Cities Housing CrisisShared Economy - Airbnb and the Cities Housing Crisis
Shared Economy - Airbnb and the Cities Housing CrisisGrégory Engels
 
Digital sovereignty in Russia
Digital sovereignty in RussiaDigital sovereignty in Russia
Digital sovereignty in RussiaGrégory Engels
 
How 3D Printing Will Change Everything
How 3D Printing Will Change EverythingHow 3D Printing Will Change Everything
How 3D Printing Will Change EverythingGrégory Engels
 
Statutes of the pirate parties international
Statutes of the pirate parties internationalStatutes of the pirate parties international
Statutes of the pirate parties internationalGrégory Engels
 
Kommunikation Im Internet
Kommunikation Im InternetKommunikation Im Internet
Kommunikation Im InternetGrégory Engels
 
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...Grégory Engels
 
Pirates Of The World, Unite!
Pirates Of The World, Unite!Pirates Of The World, Unite!
Pirates Of The World, Unite!Grégory Engels
 

More from Grégory Engels (9)

PrivacyDay2021: German experience around privacy and covid
PrivacyDay2021: German experience around privacy and covidPrivacyDay2021: German experience around privacy and covid
PrivacyDay2021: German experience around privacy and covid
 
Shared Economy - Airbnb and the Cities Housing Crisis
Shared Economy - Airbnb and the Cities Housing CrisisShared Economy - Airbnb and the Cities Housing Crisis
Shared Economy - Airbnb and the Cities Housing Crisis
 
Digital sovereignty in Russia
Digital sovereignty in RussiaDigital sovereignty in Russia
Digital sovereignty in Russia
 
How 3D Printing Will Change Everything
How 3D Printing Will Change EverythingHow 3D Printing Will Change Everything
How 3D Printing Will Change Everything
 
Nuclear Doctrines
Nuclear DoctrinesNuclear Doctrines
Nuclear Doctrines
 
Statutes of the pirate parties international
Statutes of the pirate parties internationalStatutes of the pirate parties international
Statutes of the pirate parties international
 
Kommunikation Im Internet
Kommunikation Im InternetKommunikation Im Internet
Kommunikation Im Internet
 
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...
I Know What Youll Do Next Summer - The Skills You Will Be Learning 
as a Domi...
 
Pirates Of The World, Unite!
Pirates Of The World, Unite!Pirates Of The World, Unite!
Pirates Of The World, Unite!
 

Recently uploaded

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Gregory engels nsd crash course - ilug10

  • 1. NSD ‘Crash Course’ Gregory Engels, Kompurity ILUG 2010
  • 2. Some Rights Reserved Copyright 2010 by Gregory Engels, Kompurity. Except where otherwise noted, this work is licensed under the Creative Commons Attribution Share Alike 3.0 License
  • 3. About me Gregory Engels Born in Moscow, live in Frankfurt, Germany since 1989 Been around Lotus Notes since 1998 Advanced Certified Domino Developer and Admin and Security R5, R6, R7, R8 Co-Author "Migrating Microsoft Exchange 2000/2003 to IBM Lotus Notes 7" Founder Kompurity http://www.kompurity.de Specialize in Hosting, Infrastructure management Blog: http://inotes.de Twitter: dichter
  • 4. Agenda • NSD • ADC • Upgrading NSD • LND
  • 5. • Notes Systems Diagnostic • binary on W32 and iSeries • shell script nsd.sh on Unix What is NSD
  • 6. Running the NSD • Manually • Automatically as part of Fault Recovery
  • 7. • Enabled by default • Enable it in the Server document • Go enable it now. Fault Recovery
  • 8. Help is on the way • nsd -help
  • 10. Enable in the Config Doc
  • 13. Put this in the nsd.ini • canceldisable=1 • (BOFH tip of the day)
  • 14. Real Life • ADC Enabled 9 Month ago • User Population c.a. 6000 Users • 1700 Users have created at least 1 NSD • c.a. 13000 Client NSD • 13 Users (0.05%) created 1700 NSD (14%)
  • 15. How often does Notes Crashes? 0 10 20 30 40 50 60 70 80 90 100 1 5 9 14 21 30 52 75 163 1258 Number of Users that had N Crashes Occurency
  • 16. Number of NSDs per User 0 375 750 1125 1500 Occurences
  • 17. NSD’s per Day 0 18 36 54 72 90 22.08.2009 25.08.2009 28.08.2009 31.08.2009 03.09.2009 06.09.2009 09.09.2009 12.09.2009 15.09.2009 18.09.2009 21.09.2009 24.09.2009
  • 18.
  • 20. • See TN #4013182 for ftp links • See TN #1233676 for list of SPR’s fixed • Version of NSD is <NotesVersion><Fixpack>.<YNNN> • NNN = Days since year begin • example: NSD 8.0.10.8057 (Release 8.0.1) = Feb 27 2008 (57 Days since Jan 01)
  • 22. Finding the log • Logs are stored in the IBM_TECHNICAL_SUPPORT subdirectory • in the Lotus Notes Domino Fault Reports Database lndfr.nsf • ND6 - nsd_all_<Platform>_<Host>_MM_DD@HH_MM.log • ND7 - nsd_<Platform>_<ServerName>_YYYY_MM_DD@HH_MM_SS.log
  • 23. Contents of the NSD • Rather verbose • Process Info (Call Stack) • Memcheck (Domino Memory Objects) • System Information • Environment Information
  • 24. • Process Information (Call Stacks) – Process Information is composed of the list of all running processes system wide, followed by a list of all Domino specific processes. • the code path involved in a particular problem.
  • 25. • Memcheck (Domino Memory Objects) – The Memcheck section dumps information about Domino-specific structures. • memory pools (both private and shared) • list of open resources such as open database, open view, open documents, connected users, and open files.
  • 26. • System Information – This section provides information regarding version of OS, • kernel configurations, patch information, disk information, network connections, and memory usage.
  • 27. • Environment Information: • user environment, • notes.ini, • file listing
  • 28. Finding the fault • Look for the words FATAL, PANIC, ETC ### FATAL THREAD 67/135 [ nSERVER:0908: 2692] ### FP=0x0ae5ec70, PC=0x6018eb23, SP=0x0ae5e2f8 ### stkbase=0ae60000, total stksize=262144, used stksize=2424 ### EAX=0x010d088c, EBX=0x00000000, ECX=0x00ba0000, EDX=0x00ba0000 ### ESI=0x0ae5e904, EDI=0x00001d34, CS=0x0000001b, SS=0x00000023 ### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010202 Exception code: c0000005 (ACCESS_VIOLATION) Process ID: Thread ID
  • 29. Reading the Callstack ############################################################ ### FATAL THREAD 1/4 [ncompact: 3044: 2620] ### FP=0x0012e644, PC=0x60193297, SP=0x0012dacc, stksize=2936 ### EAX=0x00e3088c, EBX=0x00000000, ECX=0x00900000, EDX=0x00900000 ### ESI=0x0012e1d8, EDI=0x00d495d8, CS=0x0000001b, SS=0x00000023 ### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010202 Exception code: c0000005 (ACCESS_VIOLATION) ############################################################ @[ 1] 0x60193297 nnotes._Panic@4+631 (60a30013) @[ 2] 0x600027a6 nnotes._LockHandle@12+294 (3963e26,12e674,12e680) @[ 3] 0x600025e7 nnotes._OSLockObject@4+23 (60c7df40) @[ 4] 0x606c09cc nnotes.CArchSetPolicy::GetPrivateArchiveSettings+3404 (1) @[ 5] 0x606bf1a8 nnotes.CArchSetPolicy::GetArchiveSettings+1032 (0) @[ 6] 0x606be9f9 nnotes.CArchSetPolicy::Init+553 (33a0a99) @[ 7] 0x606c7554 nnotes._PolicyCheckServerArchiveEnabled@4+52 (a9) @[ 8] 0x606e2fc1 nnotes._CheckServerArchiveEnabled+113 (10900a9) @[ 9] 0x00402111 nCompact._CompactFile@16+529 (0,a9,81000000,0) @[10] 0x00401b61 nCompact._AddInMain@12+2913 (3,3,398644) @[11] 0x004028cf nCompact._NotesMain@8+47 (3,400000) @[12] 0x004029d6 nCompact._notes_main+214 (0,0) @[13] 0x004028f6 nCompact._main+22 (3,3b2da0) @[14] 0x00402cc1 nCompact._mainCRTStartup+197 (0,0) @[15] 0x7c816ff7 KERNEL32.RegisterWaitForInputIdle+105 (402bfc,0) Pid : Tid
  • 30. Finding the Resources • Search for “Open Databases” • Search for “Open Documents”
  • 31. DBH NOTEID HANDLE CLASS FLAGS IsProf #Pools #Items Size Database 531 7330 0x24ff 0x0001 0x0200 Yes 1 4 2984 d:notedata drmailjsmith.nsf Open By: CN=John Smith/O=ACME/C=US Flags2 = 0x0404 Flags3 = 0x0000 OrigHDB = 531 First Item = [ 9471: 836] Last Item = [ 9471: 1228] Non-pool size : 0
  • 32. Note Class Description • 0x0001 Data Note (document) • 0x0004 Form Note • 0x0008 View note • 0x0040 ACL Note • 0x0200 Agent Note • 0x0800 Replication Formula Note
  • 33. Search for VTread info • Search on KEYWORDs “Resource Usage” or “Resource Usage Summary” • Search on KEYWORD “Process” until you located the necessary process ID • Search on the PHYSICAL THREAD ID of the thread you are interested in (cosection after you have looked at call stacks)
  • 35. • Try NSD -info • If this runs to completion, perhaps there is a problem with the pid.nbf file • Try upgrading NSD • Check if symbols are installed • lotusnotes.sym
  • 37. • See TN # 4019151 for download link • ftp://ftp.software.ibm.com/software/ lotus/tools/LND_2.8_Setup.zip
  • 38.
  • 39.
  • 44. Thank You! • Please fill out the evaluation (so I can get back next year) • Contact: Gregory.Engels ※ kompurity.de Blog http://inotes.de twitter: dichter
  • 46. NSD parameters • nsd –stack (collects only call stacks, speeds execution) • nsd –info (collects only system info) • nsd –noinfo (collects all but info) • nsd –memcheck (collects only memcheck info) • nsd –nomemcheck (collects all but memcheck) • nsd –perf (collects process memory usage) • nsd –noperf (collects all but performance data) • nsd –handles (collects OS level handle info) • nsd –nohandles (collects all but handle info) • nsd –kill (kills all notes process and associated memory) • nsd –monitor (attaches and waits for exceptions) • nsd –p (runs against a specific process – call stacks only)