[ 
https://issues.apache.org/jira/browse/DAEMON-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045807#comment-16045807
 ] 

Bruno P. Kinoshita commented on DAEMON-360:
-------------------------------------------

Not using Windows at the moment, and unfortunately do not have a box to test 
and reproduce it.

But some quick searching led me to this [post from 2015 in Tom's Hardware 
forums|http://www.tomshardware.com/forum/id-2775794/data-area-passed-system-call-small.html],
 which contains links to three support articles in Microsoft for that.

* [249721 Error Message: Data Area Passed to a System Call Is Too 
Small.|https://support.microsoft.com/en-us/help/249721/error-message-data-area-passed-to-a-system-call-is-too-small.]
* [273023 Error Message: The Data Area Passed to a System Call Is Too 
Small|https://support.microsoft.com/en-us/help/273023/error-message-the-data-area-passed-to-a-system-call-is-too-small]
* [810065 FIX: The "Data area passed to a system call is too small" error 
message is logged when you call the CreateEx method at the same time in a 
multiple-thread application that uses the Virtual Device Interface feature of 
SQL Server 
2000|https://support.microsoft.com/en-us/help/810065/fix-the-data-area-passed-to-a-system-call-is-too-small-error-message-is-logged-when-you-call-the-createex-method-at-the-same-time-in-a-multiple-thread-application-that-uses-the-virtual-device-interface-feature-of-sql-server-2000]

These three articles seem to have a solution involving changing settings in 
Windows, or Windows utilities. I think this issue has no simple solution in the 
library code. Will leave it open for a while to see what others think too.

Cheers
Bruno

> Service creation failed with message "The data area passed to a system call 
> is too small"
> -----------------------------------------------------------------------------------------
>
>                 Key: DAEMON-360
>                 URL: https://issues.apache.org/jira/browse/DAEMON-360
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.15
>         Environment: Windows 7 64 bit
>            Reporter: Soumen Choudhury
>
> Trying to create a service using my java program. My code is executing fine 
> and its doing what is supposed to do, but at last prunsrv fail with message 
> "The data area passed to a system call is too small". Below is the log that I 
> collected,
> [2017-06-10 11:46:09] [debug] ( prunsrv.c:1679) [ 9528] Commons Daemon 
> procrun log initialized
> [2017-06-10 11:46:09] [info]  ( prunsrv.c:1683) [ 9528] Commons Daemon 
> procrun (1.0.15.0 64-bit) started
> [2017-06-10 11:46:09] [debug] ( prunsrv.c:561 ) [ 9528] Installing service...
> [2017-06-10 11:46:09] [info]  ( prunsrv.c:600 ) [ 9528] Service Test name Test
> [2017-06-10 11:46:09] [info]  ( prunsrv.c:634 ) [ 9528] Service 'Test' 
> installed
> [2017-06-10 11:46:09] [info]  ( prunsrv.c:1764) [ 9528] Commons Daemon 
> procrun finished
> [2017-06-10 11:46:27] [debug] ( prunsrv.c:1679) [10468] Commons Daemon 
> procrun log initialized
> [2017-06-10 11:46:27] [info]  ( prunsrv.c:1683) [10468] Commons Daemon 
> procrun (1.0.15.0 64-bit) started
> [2017-06-10 11:46:27] [info]  ( prunsrv.c:725 ) [10468] Starting service 
> 'Test' ...
> [2017-06-10 11:46:27] [warn]  ( service.c:140 ) [10468] Failed to obtain 
> service description
> [2017-06-10 11:46:27] [debug] ( prunsrv.c:1679) [11128] Commons Daemon 
> procrun log initialized
> [2017-06-10 11:46:27] [info]  ( prunsrv.c:1683) [11128] Commons Daemon 
> procrun (1.0.15.0 64-bit) started
> [2017-06-10 11:46:27] [info]  ( prunsrv.c:1596) [11128] Running 'Test' 
> Service...
> [2017-06-10 11:46:27] [debug] ( prunsrv.c:1374) [ 7236] Inside ServiceMain...
> [2017-06-10 11:46:27] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 
> 2, 0, 3000, 0
> [2017-06-10 11:46:27] [info]  ( prunsrv.c:1127) [ 7236] Starting service...
> [2017-06-10 11:46:27] [debug] ( javajni.c:233 ) [ 7236] loading jvm 
> 'C:\Program Files\Java\jdk1.8.0_121\jre\bin\server\jvm.dll'
> [2017-06-10 11:46:27] [debug] ( javajni.c:704 ) [ 9968] Jvm Option[0] 
> -Djava.class.path=C:\abc\Test\bin\TestServiceWrapper.jar
> [2017-06-10 11:46:27] [debug] ( javajni.c:704 ) [ 9968] Jvm Option[1] exit
> [2017-06-10 11:46:27] [debug] ( javajni.c:941 ) [ 9968] Java Worker thread 
> started com/company/Test/service/WindowsServiceWrapper:start
> [2017-06-10 11:46:27] [debug] ( javajni.c:964 ) [ 9968] Java Worker thread 
> finished com/company/Test/service/WindowsServiceWrapper:start with status=0
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:1186) [ 7236] Java started 
> com/company/Test/service/WindowsServiceWrapper
> [2017-06-10 11:46:28] [info]  ( prunsrv.c:1284) [ 7236] Service started in 
> 1107 ms.
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 
> 4, 0, 0, 0
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:1528) [ 7236] Waiting for worker to 
> finish...
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:1533) [ 7236] Worker finished.
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:1559) [ 7236] Waiting for all 
> threads to exit
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 
> 3, 0, 0, 0
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:1563) [ 7236] JVM destroyed.
> [2017-06-10 11:46:28] [debug] ( prunsrv.c:844 ) [ 7236] reportServiceStatusE: 
> 1, 0, 0, 0
> [2017-06-10 11:46:28] [info]  ( prunsrv.c:1598) [11128] Run service finished.
> [2017-06-10 11:46:28] [info]  ( prunsrv.c:1764) [11128] Commons Daemon 
> procrun finished
> [2017-06-10 11:46:30] [error] ( prunsrv.c:746 ) [10468] Failed to start 
> 'Test' service
> [2017-06-10 11:46:30] [error] ( prunsrv.c:746 ) [10468] The data area passed 
> to a system call is too small.
> [2017-06-10 11:46:30] [info]  ( prunsrv.c:754 ) [10468] Start service 
> finished.
> [2017-06-10 11:46:30] [error] ( prunsrv.c:1755) [10468] Commons Daemon 
> procrun failed with exit value: 5 (Failed to start service)
> [2017-06-10 11:46:30] [error] ( prunsrv.c:1755) [10468] The data area passed 
> to a system call is too small.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to