Solr startup issue as window service on Windows 10

If you are configuring Sitecore 9 then you have to setup Solr as window service for supporting xConnect. While starting Solr as window service you may have following issue

Program “Solr Path” exited with return code 3221225794.

To fix this issue , kindly make sure that you are using windows 10 supported version of NSSM. Here are the comments available on for windows 10

Windows 10 Creators Update

2017-04-26: Users of Windows 10 Creators Update should use prelease build 2.2.4-101 to avoid an issue with services failing to start. If for some reason you cannot use that build you can also set AppNoConsole=1 in the registry (\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<servicename>\Parameters)

, noting that applications which expect a console window may behave unexpectedly.